LibraryAwareGraphClassLoader cl = newClassLoader(moduleResourceRetriever, true);
cl.maybeFindLibraryClassLocally("myclass", internalLoad);
}
public void testMaybeLoadExternalClassNonEmpty() {
ClassRetriever moduleResourceRetriever = createMock(ClassRetriever.class);
expect(moduleResourceRetriever.getClassBytes("myclass")).andReturn(null);
replay(moduleResourceRetriever);
LibraryAwareGraphClassLoader cl = newClassLoader(moduleResourceRetriever, true);
cl.maybeFindLibraryClassLocally("myclass", internalLoad);
verify(moduleResourceRetriever);