### Question:
IdManager { synchronized CellId newCellId(LibId libId, CellName cellName) { assert !readOnly; assert libId.idManager == this; CellId cellId = libId.getCellId(cellName); return cellId != null ? cellId : newCellIdInternal(libId, cellName); } 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 testNewCellId() { System.out.println("newCellId"); assertCellId(0, cellId0); assertCellId(1, cellId1); CellName cellName2 = CellName.parseName("cell2;1{sch}"); CellId cellId2 = libId1.newCellId(cellName2); assertCellId(2, cellId2); }