@Test
public void testNoopJavascriptIncomingMapping() {

    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, DittoConstants.DITTO_PROTOCOL_CONTENT_TYPE);
    final ModifyAttribute modifyAttribute =
            ModifyAttribute.of(ThingId.of(MAPPING_INCOMING_NAMESPACE, MAPPING_INCOMING_ID),
                    JsonPointer.of("foo"),
                    JsonValue.of(MAPPING_INCOMING_PAYLOAD_STRING),
                    DittoHeaders.newBuilder()
                            .correlationId(correlationId)
                            .schemaVersion(JsonSchemaVersion.V_2)
                            .build());
    final Adaptable inputAdaptable = DittoProtocolAdapter.newInstance().toAdaptable(modifyAttribute);
    final JsonifiableAdaptable jsonifiableInputAdaptable =
            ProtocolFactory.wrapAsJsonifiableAdaptable(inputAdaptable);
    final ExternalMessage message = ExternalMessageFactory.newExternalMessageBuilder(headers)
            .withText(jsonifiableInputAdaptable.toJsonString())
            .build();
    final long startTs = System.nanoTime();
    final List<Adaptable> adaptables = javaScriptRhinoMapperNoop.map(message);
    final Adaptable mappedAdaptable = adaptables.get(0);
    System.out.println(mappedAdaptable);
    System.out.println(
            "testNoopJavascriptIncomingMapping Duration: " + (System.nanoTime() - startTs) / 1000000.0 + "ms");
    assertThat(mappedAdaptable).isEqualTo(jsonifiableInputAdaptable);
}