### Question:
CorbaPrimitiveMap extends PrimitiveMapBase { public Object get(QName key) { CorbaType corbaTypeImpl = null; QName type = corbaPrimitiveMap.get(key.getLocalPart()); if (type != null) { corbaTypeImpl = new CorbaType(); corbaTypeImpl.setQName(type); corbaTypeImpl.setType(key); corbaTypeImpl.setName(key.getLocalPart()); } return corbaTypeImpl; } CorbaPrimitiveMap(); Object get(QName key);  }### Answer:
@Test public void testMap() { Map<QName, CorbaType> map = new HashMap<>(); QName corbaName = new QName("http: QName typeName = new QName("http: CorbaType corbaTypeImpl = new CorbaType(); corbaTypeImpl.setQName(corbaName); corbaTypeImpl.setType(typeName); corbaTypeImpl.setName(corbaName.getLocalPart()); map.put(typeName, corbaTypeImpl); Object value = map.get(typeName); Assert.assertEquals(corbaTypeImpl.getName(), corbaName.getLocalPart()); Assert.assertEquals(corbaTypeImpl.getQName(), corbaName); Assert.assertEquals(corbaTypeImpl.getType(), typeName); Assert.assertEquals(corbaTypeImpl, value); }