@Override
    public void handleExecutionsTermination(Collection<ExecutionState> terminatedExecutionStates) {
        final Set<ExecutionState> notFinishedExecutionStates =
                checkNotNull(terminatedExecutionStates).stream()
                        .filter(state -> state != ExecutionState.FINISHED)
                        .collect(Collectors.toSet());

        if (notFinishedExecutionStates.isEmpty()) {
            handleExecutionsFinished();
        } else {
            handleAnyExecutionNotFinished(notFinishedExecutionStates);
        }
    }
@Test
    void testExecutionTerminationWithNull() {
        assertThatThrownBy(
                        () ->
                                createTestInstanceFailingOnGlobalFailOver()
                                        .handleExecutionsTermination(null))
                .isInstanceOf(NullPointerException.class);
    }