### Question:
IdManager { public int newSnapshotId() { return snapshotCount.incrementAndGet(); } IdManager(); void setReadOnly(); synchronized TechId newTechId(String techName); synchronized TechId getTechId(int techIndex); synchronized LibId newLibId(String libName); synchronized LibId getLibId(int libIndex); synchronized CellId getCellId(int cellIndex); TechPool getInitialTechPool(); Environment getInitialEnvironment(); Snapshot getInitialSnapshot(); int newSnapshotId(); void checkInvariants(); void dump(); static final IdManager stdIdManager; }### Answer:
@Test public void testNewSnapshotId() { System.out.println("newSnapshotId"); assertEquals(1, idManager.newSnapshotId()); assertEquals(2, idManager.newSnapshotId()); }