NormalizedMessageMapper extends AbstractMessageMapper { @Override public List<Adaptable> map(final ExternalMessage message) { return Collections.emptyList(); }  @Override String getId(); @Override void doConfigure(final MappingConfig mappingConfig, final MessageMapperConfiguration configuration); @Override List<Adaptable> map(final ExternalMessage message); @Override List<ExternalMessage> map(final Adaptable adaptable); static final String FIELDS; }
@Test public void headersFromAdaptableAreNotMapped() { final FeaturePropertyModified event = FeaturePropertyModified.of( ThingId.of("thing:id"), "featureId", JsonPointer.of("/the/quick/brown/fox/jumps/over/the/lazy/dog"), JsonValue.of(9), 2L, Instant.ofEpochSecond(2L), DittoHeaders.newBuilder().putHeader("random", "header").build(), null); final Adaptable adaptable = ADAPTER.toAdaptable(event, TopicPath.Channel.TWIN); Assertions.assertThat(underTest.map(adaptable).get(0).getHeaders()).isEmpty(); }