XMLHelper.INSTANCE.save((DataObject)rc, TEST_NAMESPACE, "rc", baos);
assertTrue(baos.toString(), TestUtil.equalXmlFiles(new ByteArrayInputStream(baos.toByteArray()), getClass().getResource(RC_TEST_DATA)));
}
public void testMixedRepeatingChoice() throws Exception {
MixedRepeatingChoice mrc = SequencesFactory.INSTANCE.createMixedRepeatingChoice();
List as = mrc.getA();
List bs = mrc.getB();
bs.add(new Integer(1));
as.add("foo");
Sequence mixed = mrc.getMixed();
mixed.add("some mixed text");
as.add("bar");
bs.add(new Integer(2));
// FIXME reintroduce check
// assertEquals(4, mrc.getGroup().size());
assertEquals(5, mrc.getMixed().size());
assertEquals(2, mrc.getA().size());
assertEquals(2, mrc.getB().size(),2);
assertEquals(mixed.getValue(0), new Integer(1));
assertEquals(mixed.getValue(1), "foo");