assertEquals(3, typemap.getElementsByTagName("corba:anonsequence").getLength());
assertEquals(2, typemap.getElementsByTagName("corba:anonarray").getLength());
assertEquals(1, typemap.getElementsByTagName("corba:array").getLength());
assertEquals(2, typemap.getElementsByTagName("corba:struct").getLength());
TypeMappingType mapType = (TypeMappingType)model.getExtensibilityElements().get(0);
WSDLToIDLAction idlgen = new WSDLToIDLAction();
idlgen.setBindingName("XCORBABinding");
idlgen.setOutputFile("atype.idl");
idlgen.generateIDL(model);
Array arr = (Array)mapType.getStructOrExceptionOrUnion().get(0);
assertEquals("ElementType is incorrect for Array Type", "X._5_A",
arr.getElemtype().getLocalPart());
Anonarray arr2 = (Anonarray)mapType.getStructOrExceptionOrUnion().get(3);
assertEquals("ElementType is incorrect for Anon Array Type", "X._4_A",
arr2.getElemtype().getLocalPart());
Anonarray arr3 = (Anonarray)mapType.getStructOrExceptionOrUnion().get(2);
assertEquals("ElementType is incorrect for Anon Array Type", "X._1_A",
arr3.getElemtype().getLocalPart());
Anonsequence seq = (Anonsequence)mapType.getStructOrExceptionOrUnion().get(5);
assertEquals("Name is incorrect for Anon Array Type", "X._1_A",
seq.getName());
assertEquals("ElementType is incorrect for Anon Sequence Type", "X._2_A",
seq.getElemtype().getLocalPart());
Anonsequence seq2 = (Anonsequence)mapType.getStructOrExceptionOrUnion().get(1);
assertEquals("Name is incorrect for Anon Array Type", "X._2_A",
seq2.getName());
assertEquals("ElementType is incorrect for Anon Sequence Type", "X._3_A",
seq2.getElemtype().getLocalPart());
Anonsequence seq3 = (Anonsequence)mapType.getStructOrExceptionOrUnion().get(4);
assertEquals("Name is incorrect for Anon Array Type", "X._3_A",
seq3.getName());
assertEquals("ElementType is incorrect for Anon Sequence Type", "long",
seq3.getElemtype().getLocalPart());