* Test accessing a value of some basic type in a DynAny object.
*/
public void testAccessBasicValue_any () 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";
Any inAny = orb.create_any();
inAny.insert_long (777);
dynAny.insert_any (inAny);
Any outAny = dynAny.get_any();
assertTrue (msg, inAny.equal(outAny));
assertEquals (msg, inAny.extract_long(), outAny.extract_long());
}