@Override
    public String toString() {
        if (this.equals(UNKNOWN)) {
            return "ResourceProfile{UNKNOWN}";
        }

        if (this.equals(ANY)) {
            return "ResourceProfile{ANY}";
        }

        return "ResourceProfile{"
                + getResourceString()
                + (extendedResources.isEmpty()
                        ? ""
                        : (", "
                                + ExternalResourceUtils.generateExternalResourcesString(
                                        extendedResources.values())))
                + '}';
    }
@Test
    void includesCPUAndMemoryInToStringIfTheyAreBelowThreshold() {
        ResourceProfile resourceProfile = createResourceProfile(1.0, MemorySize.ofMebiBytes(4));
        assertThat(resourceProfile.toString()).contains("cpuCores=").contains("taskHeapMemory=");
    }