static JobManagerProcessSpec processSpecFromConfig(Configuration config) {
        return createMemoryProcessSpec(PROCESS_MEMORY_UTILS.memoryProcessSpecFromConfig(config));
    }
@Test
    void testLogFailureOfJvmHeapSizeMinSizeVerification() {
        MemorySize jvmHeapMemory = MemorySize.parse("50m");

        Configuration conf = new Configuration();
        conf.set(JobManagerOptions.JVM_HEAP_MEMORY, jvmHeapMemory);

        JobManagerProcessUtils.processSpecFromConfig(conf);

        assertThat(testLoggerResource.getMessages())
                .anyMatch(
                        str ->
                                str.contains(
                                        String.format(
                                                "The configured or derived JVM heap memory size (%s) is less than its recommended minimum value (%s)",
                                                jvmHeapMemory.toHumanReadableString(),
                                                JobManagerOptions.MIN_JVM_HEAP_SIZE
                                                        .toHumanReadableString())));
    }