### Question:
SnowflakeUID extends UID { @SuppressWarnings("unchecked") public static SnowflakeUID parse(final String s) { return parse(s, -1); } protected  SnowflakeUID(); protected  SnowflakeUID(final BigInteger rawId, int radix, final String... extras); protected  SnowflakeUID(final SnowflakeUID template, final String... extras); @SuppressWarnings({"unchecked", "rawtypes"}) static UIDBuilder<UID> builder(); @Override int compareTo(final UID uid); @Override boolean equals(final Object other); @Override int getTime(); @Override String getBaseUid(); int getMachineId(); int getNodeId(); int getProcessId(); int getRadix(); int getSequenceId(); @Override String getShardedPortion(); int getThreadId(); long getTimestamp(); @Override int hashCode(); @SuppressWarnings("unchecked") static SnowflakeUID parse(final String s); @SuppressWarnings("unchecked") static SnowflakeUID parse(final String s, int maxExtraParts); static SnowflakeUID parse(final String s, int radix, int maxExtraParts); @SuppressWarnings("unchecked") static SnowflakeUID parseBase(final String s); @Override void readFields(final DataInput in); @Override String toString(); String toString(int radix); static final int DEFAULT_RADIX; static final long MAX_TIMESTAMP; static final int MAX_NODE_ID; static final int MAX_PROCESS_ID; static final int MAX_THREAD_ID; static final int MAX_MACHINE_ID; static final int MAX_SEQUENCE_ID; }### Answer:
@Test public void testParse() { UID a = builder.newId(); UID b = UID.parse(a.toString()); assertEquals(a, b); assertEquals(b, a); assertEquals(0, a.compareTo(b)); assertEquals(0, a.compare(a, b)); a = builder.newId("blabla"); b = UID.parse(a.toString()); assertEquals(a, b); assertEquals(b, a); assertEquals(0, a.compareTo(b)); assertEquals(0, a.compare(a, b)); }