@Test
public void createInstanceWithoutSourceAndEventTarget() {

    final ConnectionBuilder builder = ImmutableConnection.getBuilder(ID, TYPE, STATUS, URI);
    assertThatExceptionOfType(ConnectionConfigurationInvalidException.class)
            .isThrownBy(builder::build)
            .withMessageContaining("source")
            .withMessageContaining("target")
            .withNoCause();
}