### Question:
TechId implements Serializable { public synchronized ArcProtoId newArcProtoId(String arcProtoName) { ArcProtoId arcProtoId = arcProtoIdsByName.get(arcProtoName); if (arcProtoId != null) { return arcProtoId; } assert !idManager.readOnly; return newArcProtoIdInternal(arcProtoName); } 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(expected = NullPointerException.class) public void newArcProtoIdNull() { System.out.println("newArcProtoIdNull"); techId0.newArcProtoId(null); }
@Test(expected = IllegalArgumentException.class) public void newArcProtoIdBad() { System.out.println("newArcProtoIdBad"); techId0.newArcProtoId("a^b"); }