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

  createBytesMessage();
  when(((BytesMessage)message).getBodyLength()).thenReturn(Long.MAX_VALUE);
  createHeaders();
  converter.convert(message);
}