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