File myJar = createJarFile(1);
ClassLoader cl = new MultiParentClassLoader(NAME, new URL[]{myJar.toURL()}, parentCl);
Class clazz = cl.loadClass(CLASS_NAME);
assertSame(parentCl, clazz.getClassLoader());
ClassLoadingRules classLoadingRules = new ClassLoadingRules();
classLoadingRules.setInverseClassLoading(true);
ClassLoadingRule classLoadingRule = classLoadingRules.getNonOverrideableRule();
classLoadingRule.addClassPrefixes(Collections.singleton(CLASS_NAME));
cl = new MultiParentClassLoader(NAME, new URL[]{myJar.toURL()}, parentCl, classLoadingRules);
clazz = cl.loadClass(CLASS_NAME);
assertSame(parentCl, clazz.getClassLoader());
}