@Test
public void calculateHostResourcesAllocatedTest() {

    HostResources hostResources = new HostResources();
    hostResourcesUtils.createHostWithSmallVms(hostResources, 1);
    hostResourcesService.calculateHostResourcesAllocated(hostResources);
    Assert.assertEquals(512l, hostResources.getUsedMemoryInMegaBytes());
    Assert.assertEquals(1000l, hostResources.getUsedCpu());
}