assertEquals("foobar",msg.getString("prop"));
// Bytes
msg = new MapMessageImpl();
msg.setString("prop","foobar");
msg.markAsReadOnly();
try { msg.getBytes("prop"); fail("Should have failed"); } catch (MessageFormatException e) { /* OK */ }
assertEquals("foobar",msg.getString("prop"));
}
public void testNumericStringConversion() throws Exception