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