@VisibleForTesting
    CompletableFuture<Acknowledge> getBootstrapCompletionFuture() {
        return bootstrapCompletionFuture;
    }
@Test
    void testSubmitFailedJobOnApplicationErrorInNonHASetup() throws Exception {
        final Configuration configuration = getConfiguration();
        configuration.set(DeploymentOptions.SUBMIT_FAILED_JOB_ON_APPLICATION_ERROR, true);
        final ApplicationDispatcherBootstrap bootstrap =
                new ApplicationDispatcherBootstrap(
                        FailingJob.getProgram(),
                        Collections.emptyList(),
                        configuration,
                        TestingDispatcherGateway.newBuilder().build(),
                        scheduledExecutor,
                        exception -> {});
        assertThatFuture(bootstrap.getBootstrapCompletionFuture())
                .eventuallyFailsWith(ExecutionException.class)
                .extracting(Throwable::getCause)
                .satisfies(
                        e ->
                                assertThat(e)
                                        .isInstanceOf(ApplicationExecutionException.class)
                                        .hasMessageContaining(
                                                DeploymentOptions
                                                        .SUBMIT_FAILED_JOB_ON_APPLICATION_ERROR
                                                        .key()));
    }