@Test
public void forExternalMessageWithoutBytePayload() {

    final ExternalMessage externalMessage = ExternalMessageFactory.newExternalMessageBuilder(new HashMap<>())
            .withBytes((byte[]) null)
            .build();
    final ConnectionMonitor.InfoProvider info = InfoProviderFactory.forExternalMessage(externalMessage);
    assertThat(info).hasEmptyBytePayload();
}