### Question:
CorbaTypeMap { public CorbaTypeMap(String namespace) { targetNamespace = namespace; typeMap = new HashMap<>(); typeCodeMap = new HashMap<>(); } CorbaTypeMap(String namespace); void addType(String name, CorbaType type); CorbaType getType(String name); String getTargetNamespace(); void addTypeCode(QName name, TypeCode tc); TypeCode getTypeCode(QName name); QName getIdlType(TypeCode tc);  }### Answer:
@Test public void testCorbaTypeMap() throws Exception { CorbaTypeMap typeMap = new CorbaTypeMap("http: String targetNamespace = typeMap.getTargetNamespace(); assertEquals(targetNamespace, "http: QName type = new QName("http: "xsd1:Test.MultiPart.Colour", ""); CorbaType corbaTypeImpl = new CorbaType(); corbaTypeImpl.setType(type); corbaTypeImpl.setName("Test.MultiPart.Colour"); typeMap.addType("Test.MultiPart.Colour", corbaTypeImpl); CorbaType corbatype = typeMap.getType("Test.MultiPart.Colour"); assertEquals(corbatype.getName(), "Test.MultiPart.Colour"); assertEquals(corbatype.getType().getLocalPart(), "xsd1:Test.MultiPart.Colour"); }