as.add("bar");
bs.add(new Integer(2));
rc2.setSplit("banana");
Sequence group = rc2.getGroup();
assertEquals(group.size(), 4);
assertEquals(rc2.getA().size(), 2);
assertEquals(rc2.getB().size(),2);
Sequence group1 = rc2.getGroup1();
assertEquals(group1.size(), 2);
assertEquals(rc2.getY().size(), 1);
assertEquals(rc2.getZ().size(),1);
assertEquals(group.getValue(0), new Integer(1));
assertEquals(group.getValue(1), "foo");
assertEquals(group.getValue(2), "bar");
assertEquals(group.getValue(3), new Integer(2));
assertEquals(group1.getValue(0), new Integer(99));
assertEquals(group1.getValue(1), "fred");
ByteArrayOutputStream baos = new ByteArrayOutputStream();
XMLHelper.INSTANCE.save((DataObject)rc2, TEST_NAMESPACE, "rc2", baos);
assertTrue(baos.toString(), TestUtil.equalXmlFiles(new ByteArrayInputStream(baos.toByteArray()), getClass().getResource(RC2_TEST_DATA)));