assertEquals(msg.getShort("short"), shortValue.shortValue());
assertTrue(msg.getObject("string") instanceof String);
assertEquals(msg.getObject("string"), stringValue);
assertEquals(msg.getString("string"), stringValue);
msg.clearBody();
try {
msg.setObject("object", new Object());
fail("should have thrown exception");
} catch (MessageFormatException e) {
}