@Test
public void testEmptyJavascriptIncomingMapping() {

    final String correlationId = UUID.randomUUID().toString();
    final Map<String, String> headers = new HashMap<>();
    headers.put(HEADER_CORRELATION_ID, correlationId);
    headers.put(ExternalMessage.CONTENT_TYPE_HEADER, CONTENT_TYPE_PLAIN);
    final ExternalMessage message = ExternalMessageFactory.newExternalMessageBuilder(headers).build();
    final long startTs = System.nanoTime();
    final List<Adaptable> adaptables = javaScriptRhinoMapperEmpty.map(message);
    System.out.println(
            "testEmptyJavascriptIncomingMapping Duration: " + (System.nanoTime() - startTs) / 1_000_000.0 + "ms");
    assertThat(adaptables).isEmpty();
}