XMLHelper.INSTANCE.save((DataObject)mrc, TEST_NAMESPACE, "mrc", baos);
assertTrue(baos.toString(), TestUtil.equalXmlFiles(new ByteArrayInputStream(baos.toByteArray()), getClass().getResource(MRC_TEST_DATA)));
}
public void test2RepeatingChoices() throws Exception {
TwoRCs rc2 = SequencesFactory.INSTANCE.createTwoRCs();
List as = rc2.getA();
List bs = rc2.getB();
List ys = rc2.getY();
List zs = rc2.getZ();
zs.add(new Integer(99));
bs.add(new Integer(1));
ys.add("fred");
as.add("foo");
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));