@Test public void test01() { String u1 = uuid.next(); Assert.assertNotNull(u1); String u2 = uuid.next(); Assert.assertNotNull(u2); Assert.assertNotEquals(u1, u2); }
@Override public String next() { return UUID.randomUUID().toString(); }
RandomUuidImpl implements Uuid { @Override public String next() { return UUID.randomUUID().toString(); } }
RandomUuidImpl implements Uuid { @Override public String next() { return UUID.randomUUID().toString(); }  }
RandomUuidImpl implements Uuid { @Override public String next() { return UUID.randomUUID().toString(); }  @Override String next(); }
RandomUuidImpl implements Uuid { @Override public String next() { return UUID.randomUUID().toString(); }  @Override String next();  }