### Question:
PluginClassLoader extends ClassLoader { List<File> getPluginInnerJars() { return new ArrayList<File>(pluginInnerJars); } PluginClassLoader(final File pluginFile);  PluginClassLoader(final File pluginFile, final ClassLoader parent);  PluginClassLoader(final File pluginFile, final ClassLoader parent, final File tempDirectory); void close(); URL getLocalResource(final String name); @Override URL getResource(final String name);  }### Answer:
@Test public void testPluginClassLoaderExtractsInnerJarsToSpecifiedDirectory() throws Exception { final List<File> files = pluginClassLoader.getPluginInnerJars(); for (File file : files) { assertEquals(tmpDir, file.getParentFile()); } }
@Test public void testPluginClassLoaderFindsInnerJars() throws Exception { List innerJars = pluginClassLoader.getPluginInnerJars(); assertEquals(2, innerJars.size()); }