### Question:
TechId implements Serializable { void check() { assert this == idManager.getTechId(techIndex); assert techName.length() > 0 && jelibSafeName(techName); for (Map.Entry<String, ArcProtoId> e : arcProtoIdsByName.entrySet()) { ArcProtoId arcProtoId = e.getValue(); assert arcProtoId.techId == this; assert arcProtoId.name == e.getKey(); arcProtoId.check(); } for (int chronIndex = 0; chronIndex < arcProtoIds.size(); chronIndex++) { ArcProtoId arcProtoId = arcProtoIds.get(chronIndex); arcProtoId.check(); assert arcProtoIdsByName.get(arcProtoId.name) == arcProtoId; } for (Map.Entry<String, PrimitiveNodeId> e : primitiveNodeIdsByName.entrySet()) { PrimitiveNodeId primitiveNodeId = e.getValue(); assert primitiveNodeId.techId == this; assert primitiveNodeId.name == e.getKey(); primitiveNodeId.check(); } for (int chronIndex = 0; chronIndex < primitiveNodeIds.size(); chronIndex++) { PrimitiveNodeId primitiveNodeId = primitiveNodeIds.get(chronIndex); primitiveNodeId.check(); assert primitiveNodeIdsByName.get(primitiveNodeId.name) == primitiveNodeId; } } TechId(IdManager idManager, String techName, int techIndex); synchronized LayerId newLayerId(String layerName); synchronized ArcProtoId newArcProtoId(String arcProtoName); synchronized PrimitiveNodeId newPrimitiveNodeId(String primitiveNodeName); Technology inDatabase(EDatabase database); String toString(); static boolean jelibSafeName(String str); static final TechId[] NULL_ARRAY; final IdManager idManager; final String techName; final int techIndex; }### Answer:
@Test public void check() { System.out.println("check"); techId0.check(); techId2.check(); }