@Test
public void rejectConnectionWithEmptyTargetAddress() {

    final Connection connection = ConnectivityModelFactory.newConnectionBuilder(CONNECTION_ID,
            ConnectionType.AMQP_10, ConnectivityStatus.OPEN, "amqp://localhost:5671")
            .targets(Collections.singletonList(ConnectivityModelFactory.newTargetBuilder()
                    .address("")
                    .authorizationContext(Authorization.AUTHORIZATION_CONTEXT)
                    .topics(Topic.LIVE_MESSAGES)
                    .build()))
            .build();
    final ConnectionValidator underTest = getConnectionValidator();
    assertThatExceptionOfType(ConnectionConfigurationInvalidException.class)
            .isThrownBy(() -> underTest.validate(connection, DittoHeaders.empty(), actorSystem));
}