    @Test
    public void testSubtract() throws Exception {

        ResAllocs result = ResAllocsUtil.subtract(generator.createResAllocs(2), generator.createResAllocs(1));
        assertThat(hasEqualResources(result, generator.createResAllocs(1)), is(true));
    }