static void testOps(ORB orb, DynAnyFactory factory, TypeCode tc,
boolean hasComponents) {
try {
Any badAny = orb.create_any();
DynAny d1 = null, d2 = null, d3 = null, copy = null;
TypeCode origTC = getOrigType(tc);
//
// Create an any having a TypeCode that will not match tc
//
if (tc.kind() != TCKind.tk_short)
badAny.insert_short((short) 0);
else
badAny.insert_ushort((short) 0);
//
// Test: type()
//
d1 = factory.create_dyn_any_from_type_code(tc);
TypeCode tcv = d1.type();
TEST(tc.equal(tcv));
d1.destroy();
//
// Test: assign() TypeMismatch exception