### Question:
IdManager { public synchronized LibId newLibId(String libName) { assert !readOnly; LibId libId = libIdsByName.get(libName); return libId != null ? libId : newLibIdInternal(libName); } 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 testNewLibId() { System.out.println("newLibId"); assertLibId(0, libId0); assertLibId(1, libId1); LibId libId2 = idManager.newLibId("libId2"); assertLibId(2, libId2); assertSame(libId1, idManager.newLibId("libId1")); }