### Question:
VersionUidHelper { public static boolean isVersionUid(String testString) { return VERSION_UID_PATTERN.matcher(testString).matches(); } 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 acceptsValidVersionUid() { assertThat(VersionUidHelper.isVersionUid(VALID_VERSION_UID)).isTrue(); }
@Test public void rejectsInvalidVersionUid() { String testString = "1234invalid"; assertThat(VersionUidHelper.isVersionUid(testString)).isFalse(); }