@Test
public void consolidateClusterWithFourHomogeneousHostsTest() {

    List<HostResources> hosts = createClusterHomogeneousHosts(4);
    Map<Long, HostResources> migrations = consolidationAlgorithm.mapVMsToHost(hosts);
    Assert.assertEquals(1, migrations.size());
    InOrder inOrder = Mockito.inOrder(consolidationAlgorithm);
    inOrder.verify(consolidationAlgorithm).canMigrateVmToHost(Mockito.any(VmResources.class), Mockito.any(HostResources.class));
    inOrder.verify(consolidationAlgorithm).updateHostUsedResources(Mockito.any(VmResources.class), Mockito.any(HostResources.class));
}