JarUtils { public static FluentIterable<ResourceInfo> findResources(final String... filterParts) { String currentPath = Paths.get("").toAbsolutePath().toString(); if (currentPath.contains(" ")) { LOG.error("Current path contains SPACE characters that usually make loading classpath resources failing. Current path is {}", currentPath); } return resources().filter(new Predicate<ResourceInfo>() { @Override public boolean apply(ResourceInfo input) { return matchesName(filterParts).apply(input.getResourceName()); } }); }  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_getPropertyFile() { assertThat(JarUtils.findResources("test_props/.*properties$"), is(not(emptyIterableOf(ResourceInfo.class)))); }