JarUtils { public static String fileNameFromClasspath(String classPathFile) { return Iterables.getLast(Splitter.on("/").splitToList(classPathFile)); }  static void unzipToFile(Path outsideDirectory, String... fileOnClassPath); static void unzipResource(Path outsideDirectory, ResourceInfo resource); static String fileNameFromClasspath(String classPathFile); static void unzipDirectory(Path outsideDirectory, String... dirOnClassPath); static FluentIterable<ResourceInfo> findResources(final String... filterParts); static void reload();  }
@Test public void should_getProperFileName() { assertThat(JarUtils.fileNameFromClasspath("lib/test_props/some.jar"), is(equalTo("some.jar"))); }