### Question:
JCABusFactory { protected Properties loadProperties(URL propsUrl) throws ResourceException { Properties props = null; LOG.info("loadProperties, url=" + propsUrl); try (InputStream istream = propsUrl.openStream()) { props = new Properties(); props.load(istream); } catch (IOException e) { throw new ResourceAdapterInternalException( new Message("FAIL_TO_LOAD_EJB_SERVANT_PROPERTIES", BUNDLE, propsUrl).toString(), e); } return props; } JCABusFactory(ManagedConnectionFactoryImpl aMcf); ClassLoader getAppserverClassLoader(); void setAppserverClassLoader(ClassLoader classLoader); Object getBootstrapContext(); Bus getBus(); void setBus(Bus b); void create(ClassLoader classLoader, Object context); WorkManager getWorkManager();  }### Answer:
@Test public void testLoadNonexistentProperties() throws Exception { ManagedConnectionFactoryImpl mcf = new ManagedConnectionFactoryImpl(); JCABusFactory jcaBusFactory = new JCABusFactory(mcf); try { jcaBusFactory.loadProperties(new File("/rubbish_name.properties").toURI().toURL()); fail("expect an exception ."); } catch (ResourceException re) { assertTrue("Cause is FileNotFoundException, cause: " + re.getCause(), re.getCause() instanceof FileNotFoundException); } }