@Test
public void createInstanceWithNullConnection() {

    assertThatExceptionOfType(NullPointerException.class)
            .isThrownBy(() -> ModifyConnection.of(null, DittoHeaders.empty()))
            .withMessage("The %s must not be null!", "Connection")
            .withNoCause();
}