### Question:
UUIDUtils { public static boolean isUUID(String uuidstr) { boolean result = false; try { UUID.fromString(uuidstr); result = true; } catch (IllegalArgumentException e) { } return result; }  static boolean isUUID(String uuidstr); static String toOID(UUID uuid); static String toOID(UUID uuid, String prefix); static String toOIDFromUUIDString(String uuidstr); static String toOIDFromUUIDString(String uuidstr, String prefix); static final String OID_ROOT; }### Answer:
@Test public void isUUIDTest() throws Exception { String teststr = "2.25.3.5.6.777789897"; assertFalse(UUIDUtils.isUUID(teststr)); teststr = "f81d4fae-7dec-11d0-a765-00a0c91e6bf6"; assertTrue(UUIDUtils.isUUID(teststr)); }