{
final String name1 = "field1"; // specific to IDL
final String name2 = "field2"; // specific to IDL
String msg;
org.omg.CORBA.Any any = null;
NonEmptyException type = null;
int oldInt = 1;
String oldStr = "Hello";
int newInt = 2;
String newStr = "GoodBye";
org.omg.DynamicAny.DynStruct dynAny = null;
org.omg.DynamicAny.DynAny dynAny1 = null;
org.omg.DynamicAny.DynAny dynAny2 = null;
org.omg.DynamicAny.NameDynAnyPair [] pairs = null;
type = new NonEmptyException (oldInt, oldStr);
any = orb.create_any ();
NonEmptyExceptionHelper.insert (any, type);
dynAny = createDynAnyFromAny (any);
// test extracting the name/value pairs as DynAnys