public void testParentFirstResource() throws Exception {
URLClassLoader pcl = (URLClassLoader) getClass().getClassLoader();
URL url = getClass().getResource("jndi.properties");
url = new File(url.toURI()).getParentFile().toURL();
ClassLoader clsLoader = new JarFileClassLoader("", new URL[] { url }, pcl, false, new String[0], new String[0]);
URL res1 = clsLoader.getResource("jndi.properties");
URL res2 = pcl.getResource("jndi.properties");
assertEquals(res2, res1);
}