@Test
public void forExternalMessageWithoutTextPayload() {

    final ExternalMessage externalMessage = ExternalMessageFactory.newExternalMessageBuilder(new HashMap<>())
            .withText(null)
            .build();
    final ConnectionMonitor.InfoProvider info = InfoProviderFactory.forExternalMessage(externalMessage);
    assertThat(info).hasEmptyTextPayload();
}