@Test
public void forExternalMessageWithTextPayload() {

    final String textPayload = "{ \"foo\":\"bar\" }";
    final ExternalMessage externalMessage = ExternalMessageFactory.newExternalMessageBuilder(new HashMap<>())
            .withText(textPayload)
            .build();
    final ConnectionMonitor.InfoProvider info = InfoProviderFactory.forExternalMessage(externalMessage);
    assertThat(info).hasPayload(textPayload);
}