{
StringUtilBuffer buffer = new StringUtilBuffer(10*1024,10*1024);
for (int exec=0;exec<MAX_LOOP;exec++)
{
MarshalledObject marshall = new MarshalledObject(myTest);
byteOut.reset();
ObjectOutputStream regularOutput = new ObjectOutputStream(byteOut);
regularOutput.writeObject(marshall);
regularOutput.flush();
ObjectInputStream regularInput = new ObjectInputStream(new ByteArrayInputStream(byteOut.toByteArray()));
marshall = (MarshalledObject)regularInput.readObject();
Object value = marshall.get();
assertNotSame(myTest,value);
assertSame(myTest.getClass(),value.getClass());
if (!(myTest instanceof String[]))assertEquals(myTest,value);
}