public boolean couldHoldIgnoringSharedMemory(NormalizedResources other, double thisTotalMemoryMb, double otherTotalMemoryMb) {
        if (this.cpu < other.getTotalCpu()) {
            return false;
        }
        return couldHoldIgnoringSharedMemoryAndCpu(other, thisTotalMemoryMb, otherTotalMemoryMb);
    }
@Test
    public void testCouldHoldWithEnoughResources() {
        Map<String, Double> allResources = new HashMap<>();
        allResources.put(Constants.COMMON_CPU_RESOURCE_NAME, 2.0);
        allResources.put(gpuResourceName, 2.0);
        NormalizedResources resources = new NormalizedResources(normalize(allResources));
        NormalizedResources resourcesToCheck = new NormalizedResources(normalize(allResources));
        
        boolean couldHold = resources.couldHoldIgnoringSharedMemory(resourcesToCheck, 100, 100);
        
        assertThat(couldHold, is(true));
    }