@Test(expected = JMSException.class)
public void testBytesMessagePartialReturn() throws Exception {

  createBytesMessage();
  when(((BytesMessage)message).readBytes(any(byte[].class)))
    .thenReturn(BYTES.length + 1);
  createHeaders();
  converter.convert(message);
}