@Test
public void createInstanceWithNullConnectionIdString() {

    assertThatExceptionOfType(NullPointerException.class)
            .isThrownBy(() -> ConnectionOpened.of((String) null, DittoHeaders.empty()))
            .withMessage("The entityId must not be null!")
            .withNoCause();
}