### Question:
JarClassLoaderService implements ClassLoaderService { static String fileNameToJarPrefix(@Nonnull final String jarFileFullPath) { return "jar:" + fileNameToFileProtocol(jarFileFullPath) + "!"; } @Inject  JarClassLoaderService(final ArtifactDiscoveryService artifactDiscoveryService); @Override List<ShadowClass> getAllClasses(@Nonnull Artifact artifact,
                                           @Nonnull final Predicate<String> classNameFilter);  }### Answer:
@Test public void testFileNameToJarPrefix() { assertThat(fileNameToJarPrefix("fooBar")).isEqualTo("jar:file:fooBar!"); assertThat(fileNameToJarPrefix("file:fooBar")).isEqualTo("jar:file:fooBar!"); }