public boolean allFieldsNoLessThan(final ResourceProfile other) {
        checkNotNull(other, "Cannot compare null resources");

        if (this.equals(ANY)) {
            return true;
        }

        if (this.equals(other)) {
            return true;
        }

        if (this.equals(UNKNOWN)) {
            return false;
        }

        if (other.equals(UNKNOWN)) {
            return true;
        }

        if (cpuCores.getValue().compareTo(other.cpuCores.getValue()) >= 0
                && taskHeapMemory.compareTo(other.taskHeapMemory) >= 0
                && taskOffHeapMemory.compareTo(other.taskOffHeapMemory) >= 0
                && managedMemory.compareTo(other.managedMemory) >= 0
                && networkMemory.compareTo(other.networkMemory) >= 0) {

            for (Map.Entry<String, ExternalResource> resource :
                    other.extendedResources.entrySet()) {
                if (!extendedResources.containsKey(resource.getKey())
                        || extendedResources
                                        .get(resource.getKey())
                                        .getValue()
                                        .compareTo(resource.getValue().getValue())
                                < 0) {
                    return false;
                }
            }
            return true;
        }
        return false;
    }
@Test
    void testUnknownNoLessThanUnknown() {
        assertThat(ResourceProfile.UNKNOWN.allFieldsNoLessThan(ResourceProfile.UNKNOWN)).isTrue();
    }