@Test
public void rejectValidConnectionWithInvalidNumberTargetPayloadMapping() {

    exception.expect(ConnectionConfigurationInvalidException.class);
    final Connection connection = createConnection(CONNECTION_ID)
            .toBuilder()
            .setTargets(TestConstants.Targets.TARGET_WITH_INVALID_MAPPING_NUMBER)
            .build();
    final ConnectionValidator underTest = getConnectionValidator();
    underTest.validate(connection, DittoHeaders.empty(), actorSystem);
}