LongIdGenerator implements IdGenerator { @Override public String generate() { return Long.toString(idGenerator.incrementAndGet()); }  @Override String generate();  }
@Test void generate() { var id = ID_GENERATOR.generate(); Assertions.assertDoesNotThrow(() -> Long.parseLong(id)); }