String url2 = "http://localhost:8090/Tester2";
MockClassLoader cl = new MockClassLoader(getClass().getClassLoader(), new URL[] {new URL(url1), new URL(url2)});
Class clazz = cl.loadClass(RMIClassLoaderSpiImplTest.class.getName());
RMIClassLoaderSpiImpl impl = new RMIClassLoaderSpiImpl();
String annotations = impl.getClassAnnotation(clazz);
assertEquals(url1 + " " + url2, annotations);
}