VersionReport { protected static String jarName(String stringifiedUrl) { Matcher m = UNKONWN_ARTIFACT_PATTERN.matcher(stringifiedUrl); if (m.matches()) { return m.group(1); } return stringifiedUrl; } protected  VersionReport(); synchronized static VersionReport getInstance(); String getAdapterBuildVersion(); Collection<String> getReport(); Collection<String> getArtifactIdentifiers();  }
@Test public void testJarName() throws Exception { String url = "jar:file:/path/to/interlok-common-3.8-SNAPSHOT.jar!/META-INF/adaptris-version"; assertEquals("interlok-common-3.8-SNAPSHOT.jar", VersionReport.jarName(url)); String url2 = "/META-INF/adaptris-version"; assertEquals("/META-INF/adaptris-version", VersionReport.jarName(url2)); }