@Test
public void testNullTextMessage() throws Exception {

  createNullTextMessage();
  headers.put("key1", "value1");
  headers.put("key2", "value2");
  createHeaders();
  Event event = converter.convert(message).iterator().next();
  assertEquals(headers, event.getHeaders());
  // In case of a null text message, the event's body will be empty due to
  // SimpleEvent's body not updated with a valid text message.
  assertEquals(event.getBody().length, 0);
}