Class<?> cls1 = Class.forName("org.impalaframework.interactive.command.CommandStateConstants", false, pcl);
assertSame(cls1.getClassLoader(), pcl);
}
public void testLoadClassURL() throws Exception {
ModuleClassLoader pcl = new ModuleClassLoader(new URL[] { new DirectoryResource(getCompileFile("impala-interactive")).getURL() });
// check that this class loader loads the named class
Class<?> cls1 = Class.forName("org.impalaframework.interactive.command.CommandStateConstants", false, pcl);
assertSame(cls1.getClassLoader(), pcl);
}