### Question:
CorbaAnyHandler extends CorbaObjectHandler { public CorbaAnyHandler(QName anyName, QName anyIdlType, TypeCode anyTC, Object anyType) { super(anyName, anyIdlType, anyTC, anyType); value = null; } CorbaAnyHandler(QName anyName,
                           QName anyIdlType,
                           TypeCode anyTC,
                           Object anyType); Any getValue(); void setAnyContainedType(CorbaObjectHandler obj); CorbaObjectHandler getAnyContainedType(); void clear(); void setTypeMap(CorbaTypeMap tm); CorbaTypeMap getTypeMap(); void setValue(Any v);  }### Answer:
@Test public void testCorbaAnyHandler() { Any a = orb.create_any(); a.insert_string("TestMessage"); QName anyName = new QName("AnyHandlerName"); QName anyIdlType = CorbaConstants.NT_CORBA_ANY; TypeCode anyTC = orb.get_primitive_tc(TCKind.from_int(TCKind._tk_any)); CorbaTypeMap tm = new CorbaTypeMap(CorbaConstants.NU_WSDL_CORBA); CorbaAnyHandler anyHandler = new CorbaAnyHandler(anyName, anyIdlType, anyTC, null); anyHandler.setTypeMap(tm); anyHandler.setValue(a); Any resultAny = anyHandler.getValue(); assertNotNull(resultAny); String value = resultAny.extract_string(); assertEquals("TestMessage", value); CorbaTypeMap resultTM = anyHandler.getTypeMap(); assertEquals(resultTM.getTargetNamespace(), CorbaConstants.NU_WSDL_CORBA); }