### Question:
PlugInClassLoader extends SecureClassLoader { protected URL findResource(String name) { LOG.fine("findResource: " + name); for (int i = 0; i < jarUrls.length; i++) { String fullpath = jarUrls[i] + "!/" + name; if (PlugInClassLoaderHelper.hasResource(fullpath)) { return genURL(fullpath); } } return null; } PlugInClassLoader(final ClassLoader p);   }### Answer:
@Test public void testLoadNonExistentDirectory() throws Exception { URL url = plugInClassLoader.findResource("foo/bar/"); assertNull("url must be null. ", url); }
@Test public void testLoadNonExistentNestedDirectory() throws Exception { URL url = plugInClassLoader.findResource("foo!/bar/"); assertNull("url must be null. ", url); }