### Question:
LongIdGenerator implements IdGenerator<Long> { @Override public Long nextId() { return atomicLong.incrementAndGet(); }  @Override Long nextId();  }### Answer:
@Test public void generatesLongInSequence() { for (long index = 0; index < 10; index++) { assertThat(generator.nextId(), is(index + 1)); } }