### Question:
UUIDChecker { public static boolean isValidUUID(String id) { try { if (null == id) { return false; } UUID uuid = UUID.fromString(id); return uuid.toString().equalsIgnoreCase(id); } catch (IllegalArgumentException iae) { logger.debug("IllegalArgumentException", iae); return false; } } private  UUIDChecker(); static boolean isValidUUID(String id); static String getUUID();  }### Answer:
@Test public void isValidUUIDTest() { String nullID = null; String badID = "This is not a UUID"; String id = UUIDChecker.getUUID(); assertFalse(UUIDChecker.isValidUUID(nullID)); assertFalse(UUIDChecker.isValidUUID(badID)); assertTrue(UUIDChecker.isValidUUID(id)); }