### Question:
MemoryIdSequence implements IdSequence { @Override public long getNextId() { return nextId++; }  @Override long getNextId();  }### Answer:
@Test public void GetNextId() { IdSequence idSequence = new MemoryIdSequence(); assertEquals(1l, idSequence.getNextId()); assertEquals(2l, idSequence.getNextId()); }