WrappingMessageMapper implements MessageMapper { @Override public void configure(final MappingConfig mappingConfig, final MessageMapperConfiguration configuration) { final MapperLimitsConfig mapperLimitsConfig = mappingConfig.getMapperLimitsConfig(); inboundMessageLimit = mapperLimitsConfig.getMaxMappedInboundMessages(); outboundMessageLimit = mapperLimitsConfig.getMaxMappedOutboundMessages(); delegate.configure(mappingConfig, configuration); } private  WrappingMessageMapper(final MessageMapper delegate); static MessageMapper wrap(final MessageMapper mapper); @Override String getId(); @Override Collection<String> getContentTypeBlocklist(); @Override JsonObject getDefaultOptions(); @Override Map<String, String> getIncomingConditions(); @Override Map<String, String> getOutgoingConditions(); MessageMapper getDelegate(); @Override void configure(final MappingConfig mappingConfig, final MessageMapperConfiguration configuration); @Override List<Adaptable> map(final ExternalMessage message); @Override List<ExternalMessage> map(final Adaptable adaptable); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }
@Test public void configure() { when(mockConfiguration.getContentTypeBlocklist()).thenReturn(Collections.singletonList("blockedContentType")); underTest.configure(mapperLimitsConfig, mockConfiguration); verify(mockMapper).configure(mapperLimitsConfig, mockConfiguration); }