@Test
public void createClusterResourcesUpOneHostTest() {

    List<HostResources> hosts = createClusterHomogeneousHosts(1);
    ClusterResourcesUp cluster = clusterResourcesService.createClusterResourcesUp(random.nextLong(), "cluster", hosts);
    Assert.assertEquals(512, cluster.getUsedMemory());
    Assert.assertEquals(1000l, cluster.getUsedCpu());
    checkCpuAndMemory(cluster);
}