assertTrue(msg.readBoolean());
// Short
msg = new StreamMessageImpl();
msg.writeBoolean(true);
msg.markAsReadOnly();
try { msg.readShort(); fail("Should have failed"); } catch (MessageFormatException e) { /* OK */ }
assertTrue(msg.readBoolean());
// Char
msg = new StreamMessageImpl();