@Test
public void testEmptyJavascriptOutgoingMapping() {

    final ThingId thingId = ThingId.of("org.eclipse.ditto:foo-bar-empty");
    final String correlationId = UUID.randomUUID().toString();
    final Thing newThing = Thing.newBuilder()
            .setId(thingId)
            .setAttributes(Attributes.newBuilder().set("foo", "bar").build())
            .build();
    final CreateThing createThing =
            CreateThing.of(newThing, null, DittoHeaders.newBuilder().correlationId(correlationId).build());
    final Adaptable adaptable = DittoProtocolAdapter.newInstance().toAdaptable(createThing);
    final long startTs = System.nanoTime();
    final List<ExternalMessage> rawMessageOpt = javaScriptRhinoMapperEmpty.map(adaptable);
    System.out.println(
            "testEmptyJavascriptOutgoingMapping Duration: " + (System.nanoTime() - startTs) / 1_000_000.0 + "ms");
    assertThat(rawMessageOpt).isEmpty();
}