### Question:
TwTasksUuidUtils { public static UUID toUuid(String st) { String hyphenlessUuid = StringUtils.remove(st, '-'); BigInteger bigInteger = new BigInteger(hyphenlessUuid, 16); return new UUID(bigInteger.shiftRight(64).longValue(), bigInteger.longValue()); }  static UUID toUuid(String st); static UUID toUuid(Object arg);  }### Answer:
@Test public void stringCanBeConvertedToUuid() { UUID uuid = UUID.fromString("8d876905-1f6f-4bdd-935f-73969b725955"); assertThat(TwTasksUuidUtils.toUuid("8d876905-1f6f-4bdd-935f-73969b725955")).isEqualTo(uuid); assertThat(TwTasksUuidUtils.toUuid("8d876905-1f6f-4bdd935f73969b725955")).isEqualTo(uuid); assertThat(TwTasksUuidUtils.toUuid("8d876905-1f6f-4bdd935f73969B725955")).isEqualTo(uuid); }
@Test public void differentArgumentsCanBeConvertedToUuid() { UUID uuid = UUID.fromString("8d876905-1f6f-4bdd-935f-73969b725955"); assertThat(TwTasksUuidUtils.toUuid("8d876905-1f6f-4bdd-935f-73969b725955")).isEqualTo(uuid); assertThat(TwTasksUuidUtils.toUuid(uuid)).isEqualTo(uuid); assertThat(TwTasksUuidUtils.toUuid(UuidUtils.toBytes(uuid))).isEqualTo(uuid); assertThatThrownBy(() -> TwTasksUuidUtils.toUuid(new Object())).isInstanceOf(NotImplementedException.class); }