@Test public void startsFromOne() { var firstId = sequentialMessageIdGenerator.nextId(); assertEquals(1, firstId); }
@Override public int nextId() { return atomicInteger.incrementAndGet(); }
SequentialMessageIdGenerator implements MessageIdGenerator { @Override public int nextId() { return atomicInteger.incrementAndGet(); } }
SequentialMessageIdGenerator implements MessageIdGenerator { @Override public int nextId() { return atomicInteger.incrementAndGet(); }  }
SequentialMessageIdGenerator implements MessageIdGenerator { @Override public int nextId() { return atomicInteger.incrementAndGet(); }  @Override int nextId(); }
SequentialMessageIdGenerator implements MessageIdGenerator { @Override public int nextId() { return atomicInteger.incrementAndGet(); }  @Override int nextId();  }