JarUtils { public static JarEntry findJarEntry(URL jarURL) throws IOException { JarFile jarFile = JarUtils.toJarFile(jarURL); final String relativePath = JarUtils.resolveRelativePath(jarURL); JarEntry jarEntry = jarFile.getJarEntry(relativePath); return jarEntry; }  static JarFile toJarFile(URL jarURL); @Nonnull static String resolveRelativePath(URL jarURL); @Nonnull static String resolveJarAbsolutePath(URL jarURL); @Nonnull static List<JarEntry> filter(JarFile jarFile, JarEntryFilter jarEntryFilter); static JarEntry findJarEntry(URL jarURL); static void extract(File jarSourceFile, File targetDirectory); static void extract(File jarSourceFile, File targetDirectory, JarEntryFilter jarEntryFilter); static void extract(JarFile jarFile, File targetDirectory, JarEntryFilter jarEntryFilter); static void extract(URL jarResourceURL, File targetDirectory, JarEntryFilter jarEntryFilter);  }
@Test public void testFindJarEntry() throws Exception { URL resourceURL = ClassLoaderUtils.getClassResource(classLoader, String.class); JarEntry jarEntry = JarUtils.findJarEntry(resourceURL); Assert.assertNotNull(jarEntry); }