}
public void testLoadClassInvoked() throws Exception
{
ClassLoaderSystem system = createClassLoaderSystemWithModifiedBootstrap();
TestClassLoaderPolicy policy = new TestClassLoaderPolicy();
ClassLoader classLoader = system.registerClassLoaderPolicy(policy);
Class<?> clazz = assertLoadClass(TestClass.class, classLoader);
assertEquals("getResourceAsStream should have been invoked", TestClassLoaderPolicy.testClassPath, policy.getResourceAsStreamInvoked);
assertEquals("getResource should have been invoked", TestClassLoaderPolicy.testClassPath, policy.getResourceInvoked);