});
}
public void runWrite(final Marshaller marshaller) throws Throwable {
if (marshaller instanceof ObjectOutputStreamMarshaller) {
throw new SkipException("Skip for " + marshaller);
}
marshaller.writeObject(orig);
marshaller.writeObject(orig);
}
public void runRead(final Unmarshaller unmarshaller) throws Throwable {
try {
if (unmarshaller instanceof ObjectInputStreamUnmarshaller) {
throw new SkipException("Skip for " + unmarshaller);
}
if (unmarshaller instanceof SerialUnmarshaller) {
throw new SkipException("Functionality not yet supported on serial unmarshalling");
}
final NewRem1 object = unmarshaller.readObject(NewRem1.class);
assertEquals(object.getFoo(), orig.getFoo());
assertSame(unmarshaller.readObject(), object);
} catch (NullPointerException npe) {