* Test accessing a value of some basic type in a DynAny object.
*/
public void testAccessBasicValue_dynany () throws Exception
{
TypeCode tc = orb.get_primitive_tc (org.omg.CORBA.TCKind.tk_any);
DynAny dynAny = createDynAnyFromTypeCode (tc);
String msg = "Value inserted into DynAny object is not equal to value ";
msg += "extracted from same DynAny object";
tc = orb.get_primitive_tc (org.omg.CORBA.TCKind.tk_long);
DynAny payload = createDynAnyFromTypeCode (tc);
payload.insert_long(787);
dynAny.insert_dyn_any(payload);
DynAny offload = dynAny.get_dyn_any();
assertEquals (msg, 787, offload.get_long());
}