@Test
public void forExternalMessageWithHeaders() {

    final Map<String, String> headers = DittoHeaders.newBuilder()
            .putHeader("foo", "bar")
            .putHeader("138", "ditto")
            .build();
    final ExternalMessage externalMessage = ExternalMessageFactory.newExternalMessageBuilder(headers).build();
    final ConnectionMonitor.InfoProvider info = InfoProviderFactory.forExternalMessage(externalMessage);
    assertThat(info).hasHeaders(headers);
}