out.writeObject(inObj);
out.close();
ObjectInput in = new ObjectInputStream(new ByteArrayInputStream(
buffer.toByteArray()));
outObj = (CorrectEnumSyntax) in.readObject();
in.close();
harness.check(true, "serialize no error");
// test for identical object