### Question:
TechId implements Serializable { public synchronized PrimitiveNodeId newPrimitiveNodeId(String primitiveNodeName) { PrimitiveNodeId primitiveNodeId = primitiveNodeIdsByName.get(primitiveNodeName); if (primitiveNodeId != null) { return primitiveNodeId; } assert !idManager.readOnly; return newPrimitiveNodeIdInternal(primitiveNodeName); } 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 newPrimitiveNodeIdNull() { System.out.println("newPrimitiveNodeIdNull"); techId0.newPrimitiveNodeId(null); }
@Test(expected = IllegalArgumentException.class) public void newPrimitiveNodeIdBad() { System.out.println("newPrimitiveNodeIdBad"); techId0.newPrimitiveNodeId("a:b"); }