}
public void testReadObject_ManyChanges() {
XMLDecoder dec = new XMLDecoder(this.getClass().getResourceAsStream(
"/xml/MockBean4Codec_ManyChanges.xml"));
MockBean4Codec b = (MockBean4Codec) dec.readObject();
assertEquals(127, b.getB());
assertSame(b, b.getBackRef());
assertEquals(new Byte((byte) 127), b.getBobj());
assertFalse(b.isBool());
assertEquals(Boolean.TRUE, b.getBoolobj());
assertEquals(Exception.class, b.getBornFriend().getClazz());
assertEquals(888, b.getBornFriend().getZarr()[0]);
assertEquals('Z', b.getC());
assertEquals(String.class, b.getClazz());
assertEquals(new Character('z'), b.getCobj());
assertEquals(123.456, b.getD(), 0);
assertEquals(new Double(123.456), b.getDobj());
assertEquals(12.34F, b.getF(), 0);
assertEquals(new Float(12.34F), b.getFobj());
assertEquals(MockBean4Codec.class, b.getFriend().getClazz());
assertEquals(999, b.getI());
assertEquals(new Integer(999), b.getIobj());
assertEquals(8888888, b.getL());
assertEquals(new Long(8888888), b.getLobj());
assertEquals("Li Yang", b.getName());
assertNull(b.getNill());
assertEquals(55, b.getS());
assertEquals(new Short((short) 55), b.getSobj());
assertEquals(3, b.getZarr().length);
assertEquals(3, b.getZarr()[0]);
assertEquals(2, b.getZarr()[1]);
assertEquals(1, b.getZarr()[2]);
assertEquals(1, b.getZarrarr().length);
assertEquals(3, b.getZarrarr()[0].length);
assertEquals("6", b.getZarrarr()[0][0]);
assertEquals("6", b.getZarrarr()[0][1]);
assertEquals("6", b.getZarrarr()[0][2]);
}