Buffer buf = new Buffer();
OutputStream oStream = new OutputStream(buf);
CorbaObjectWriter writer = new CorbaObjectWriter(oStream);
writer.writeException(obj);
InputStream iStream = oStream.create_input_stream();
String readId = iStream.read_string();
assertTrue(readId.equals(reposID));
short readCode = iStream.read_short();
assertTrue(readCode == code);
String readMessage = iStream.read_string();
assertTrue(readMessage.equals(message));
}