### Question:
VersionUidHelper { public static int extractVersion(String versionUid) { Matcher matcher = VERSION_PATTERN.matcher(versionUid); if (matcher.find()) { return Integer.parseInt(matcher.group(1)); } return 1; } VersionUidHelper(String versionUid); static boolean isVersionUid(String testString); static boolean isUUID(String testString); static boolean isSystemId(String testString); static boolean isVersion(String testString); static UUID extractUUID(String versionUid); static String extractSystemId(String versionUid); static int extractVersion(String versionUid); String toString(); UUID getUuid(); void setUuid(UUID uuid); String getSystemId(); void setSystemId(String systemId); int getVersion(); void setVersion(int version); static final Pattern UUID_PATTERN; static final Pattern VERSION_PATTERN; static final Pattern SYSTEM_ID_PATTERN; static final Pattern VERSION_UID_PATTERN; }### Answer:
@Test public void extractsVersion() { int expected = 10; assertThat(VersionUidHelper.extractVersion(VALID_VERSION_UID)).isEqualTo(expected); }