}
public void testReadObject_StaticField() {
XMLDecoder dec1 = new XMLDecoder(this.getClass().getResourceAsStream(
"/xml/MockBean4StaticField_Original.xml"));
MockBean4StaticField o1 = (MockBean4StaticField) dec1.readObject();
XMLDecoder dec2 = new XMLDecoder(this.getClass().getResourceAsStream(
"/xml/MockBean4StaticField.xml"));
MockBean4StaticField o2 = (MockBean4StaticField) dec2.readObject();
if (!o1.equals(o2)) {
System.out
.println("Loading object with static field, original xml: "
+ o1.getV());
System.out.println("Loading object with static field, field xml: "
+ o2.getV());
}
assertEquals(o1, o2);
}