* Tries to load a javax.* class that is avialable from the parent ClassLoader,
* when there's a different definition available from this ClassLoader too.
* This should always load the parent's copy.
*/
public void testFalseExistantJavaxClass() {
cl = new MultiParentClassLoader(configId, urls, getClass().getClassLoader(), classLoadingRules);
try {
Class cls = cl.loadClass("javax.servlet.Servlet");
assertTrue("Loaded wrong class first; expected to find parent CL's copy of javax.servlet.Servlet",cls.getDeclaredMethods().length > 0);
} catch(ClassNotFoundException e) {
fail("Problem with test; expecting to have javax.servlet.* on the ClassPath");