assertNotNull(c);
}
@Test
public void testGetClassLoaderAndCheckURLsAreFileBased() throws MalformedURLException, ClassNotFoundException {
ResolvingLoader loader = new ResolvingLoader();
assertNotNull(loader);
/*ClassLoader classLoader = loader.getClassLoader("artifact:com.sun.jini/reggie/jar/dl/2.1;http://www.rio-project.org/maven2");*/
ClassLoader classLoader = loader.getClassLoader("artifact:com.sun.jini/reggie-dl/2.1.1;http://www.rio-project.org/maven2");
assertNotNull(classLoader);
assertTrue("Returned ClassLoader should be an instanceof URLClassLoader", classLoader instanceof URLClassLoader);
for(URL u : ((URLClassLoader)classLoader).getURLs())
assertTrue(u.getProtocol().equals("file"));
}