ByteArrayOutputStream out = new ByteArrayOutputStream();
OutputSerializer os = new OutputSerializer(out);
os.write(rpo);
ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray());
InputSerializer is = new InputSerializer(in);
RPObject result = (RPObject) is.readObject(new RPObject());
assertEquals(rpo, result);
}
class SubRPObject extends RPObject{
// just subclass of RPObject used for testing for of the