@Test
public void testReadClob() throws Exception {

  Context context = new Context();
  context.put(MorphlineHandlerImpl.MORPHLINE_FILE_PARAM,
              RESOURCES_DIR + "/test-morphlines/readClob.conf");
  Event input = EventBuilder.withBody("foo", Charsets.UTF_8);
  input.getHeaders().put("name", "nadja");
  Event actual = build(context).intercept(input);
  Event expected = EventBuilder.withBody(null,
                                         ImmutableMap.of("name", "nadja", Fields.MESSAGE, "foo"));
  assertEqualsEvent(expected, actual);
  List<Event> actualList = build(context).intercept(Collections.singletonList(input));
  List<Event> expectedList = Collections.singletonList(expected);
  assertEqualsEventList(expectedList, actualList);
}