Buffer buf = new Buffer();
OutputStream oStream = new OutputStream(buf);
CorbaObjectWriter writer = new CorbaObjectWriter(oStream);
writer.writeStruct(obj);
InputStream iStream = oStream.create_input_stream();
int readMember1 = iStream.read_long();
assertTrue(readMember1 == member1);
String readMember2 = iStream.read_string();
assertTrue(readMember2.equals(member2));
boolean readMember3 = iStream.read_boolean();