public boolean isCheckpointingEnabled() {

        if (snapshotSettings == null) {
            return false;
        }

        return snapshotSettings.getCheckpointCoordinatorConfiguration().isCheckpointingEnabled();
    }
@Test
    public void checkpointingIsEnabledIfIntervalIsqAndLegal() {
        final JobGraph jobGraph =
                JobGraphBuilder.newStreamingJobGraphBuilder()
                        .setJobCheckpointingSettings(createCheckpointSettingsWithInterval(10))
                        .build();

        assertTrue(jobGraph.isCheckpointingEnabled());
    }