### Question:
IdManager { public synchronized LibId getLibId(int libIndex) { return libIds.get(libIndex); } 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 testGetLibId() { System.out.println("getLibId"); assertSame(libId1, idManager.getLibId(1)); LibId libId2 = idManager.newLibId("libId2"); LibId libId3 = idManager.newLibId("libId3"); LibId libId4 = idManager.newLibId("libId4"); LibId libId5 = idManager.newLibId("libId5"); assertSame(libId1, idManager.getLibId(1)); assertSame(libId4, idManager.getLibId(4)); assertSame(libId5, idManager.getLibId(5)); }