@Override
    public void handleSavepointCreation(
            CompletedCheckpoint completedSavepoint, Throwable throwable) {
        if (throwable != null) {
            checkArgument(
                    completedSavepoint == null,
                    "No savepoint should be provided if a throwable is passed.");
            handleSavepointCreationFailure(throwable);
        } else {
            handleSavepointCreationSuccess(checkNotNull(completedSavepoint));
        }
    }
@Test
    void testSavepointCreationParameterBothNull() {
        assertThatThrownBy(
                        () ->
                                createTestInstanceFailingOnGlobalFailOver()
                                        .handleSavepointCreation(null, null))
                .isInstanceOf(NullPointerException.class);
    }