@VisibleForTesting
    State getState() {
        return state;
    }
@Test
    void testInitialState() throws Exception {
        final AdaptiveScheduler scheduler =
                new AdaptiveSchedulerBuilder(
                                createJobGraph(),
                                mainThreadExecutor,
                                EXECUTOR_RESOURCE.getExecutor())
                        .build();

        assertThat(scheduler.getState()).isInstanceOf(Created.class);
    }