### Question:
ParallelWorldClassLoader extends ClassLoader implements Closeable { @Override protected Enumeration<URL> findResources(String name) throws IOException { Enumeration<URL> en = getParent().getResources(prefix + name); while (en.hasMoreElements()) { try { jars.add(new JarFile(new File(toJarUrl(en.nextElement()).toURI()))); } catch (URISyntaxException | IOException ex) { Logger.getLogger(ParallelWorldClassLoader.class.getName()).log(Level.WARNING, null, ex); } catch (ClassNotFoundException ex) { } } return en; } ParallelWorldClassLoader(ClassLoader parent,String prefix); @Override synchronized void close(); static URL toJarUrl(URL res);  }### Answer:
@Test public void testFindResources() throws Exception { if (isJDK9()) return; Enumeration<URL> foundURLs = pwcl.getResources("javax/xml/ws/Service.class"); ArrayList al = Collections.list(foundURLs); int found = al.size(); if (!((found == 3) || (found == 4))) { Assert.fail("Expected 3/4 elements. Verify the urls: \n" + al); } }