UuidUtil { @Deprecated public static String getNewUuidAsString() { return getNewUuid().toString(); }  @Deprecated static UUID getUuidFromUrn(final String urn); @Deprecated static String getUrnFromUuid(final UUID referenceUuid); @Deprecated static UUID getUuidFromAccountUrn(final String urn); @Deprecated static String getAccountUrnFromUuid(final UUID referenceUuid); @Deprecated static UUID getNewUuid(); @Deprecated static String getNewUuidAsString(); static final String URN_SEPARATOR; static final String URN_PREFIX; static final String URN_PREFIX_ACCOUNT; static final String URN_PREFIX_UUID; }
@Test public void testGetNewUuidAsString() throws Exception { String uuid = UuidUtil.getNewUuidAsString(); assertTrue("uuid string '" + uuid + "' does not match '" + UUID.fromString(uuid) + "'.", uuid.equals(UUID.fromString(uuid).toString())); }