InMemoryIdSupplier implements IdSupplier<Long> { @Override public Long next() { return ids.incrementAndGet(); }  @Override Long next();  }
@Test public void should_increment_id() throws Exception { assertEquals(1L, supplier.next().longValue()); assertEquals(2L, supplier.next().longValue()); assertEquals(3L, supplier.next().longValue()); }