private static int getNumSlots(final Configuration config) {
        return config.get(TaskManagerOptions.NUM_TASK_SLOTS);
    }
@Test
    void testConfigNumSlots() {
        final int numSlots = 5;

        Configuration conf = new Configuration();
        conf.set(TaskManagerOptions.NUM_TASK_SLOTS, numSlots);

        validateInAllConfigurations(
                conf,
                taskExecutorProcessSpec ->
                        assertThat(taskExecutorProcessSpec.getNumSlots()).isEqualTo(numSlots));
    }