@Test public void testJarListedInClassLoader() throws ClassNotFoundException { boolean jarFound = false; for (URL url : pluginLoader.getURLs()) { if (url.toString().contains("test-jar.jar")) { jarFound = true; } } assertTrue("test-jar.jar not found in classloader", jarFound); // now load a class from the jar pluginLoader.loadClass("org.pentaho.test.platform.engine.services.TestClassForClassloader"); }