### Question:
ImageCatalogVersionFilter { public String extractReleasedVersion(String cbVersion) { return extractCbVersion(RELEASED_VERSION_PATTERN, cbVersion); }  Set<CloudbreakVersion> filterReleasedVersions(Collection<CloudbreakVersion> cloudbreakVersions, String releasedVersion); Set<CloudbreakVersion> filterUnreleasedVersions(Collection<CloudbreakVersion> cloudbreakVersions, String unReleasedVersion); String latestCloudbreakVersion(Iterable<CloudbreakVersion> cloudbreakVersions); boolean isVersionUnspecified(String cbVersion); String extractUnreleasedVersion(String cbVersion); String extractReleasedVersion(String cbVersion); String extractExtendedUnreleasedVersion(String cbVersion);  }### Answer:
@Test public void extractReleasedVersion() { assertEquals("2.7.0", underTest.extractReleasedVersion(releasedVersion)); }
@Test public void extractReleaseVersionFromDev() { assertEquals("2.6.0", underTest.extractReleasedVersion(devVersion)); }
@Test public void extractReleaseVersionFromRc() { assertEquals("2.4.0", underTest.extractReleasedVersion(latestRcVersion)); }
@Test public void extractReleasedFallbackOriginalVersion() { String extractedVersion = underTest.extractReleasedVersion(unReleasedVersion); assertEquals(unReleasedVersion, extractedVersion); }