StringIdGenerator { public static <T> StringId<T> getId(Class<T> classForId) { return StringId.create(Long.toString(IdGenerator.getId(classForId).id)); }  static StringId<T> getId(Class<T> classForId);  }
@Test public void generateTwoStringIds() { StringId<StringIdGeneratorTest> id1 = StringIdGenerator.getId(StringIdGeneratorTest.class); StringId<StringIdGeneratorTest> id2 = StringIdGenerator.getId(StringIdGeneratorTest.class); Assertions.assertNotNull(id1); Assertions.assertNotNull(id2); Assertions.assertNotEquals(id1, id2); }