@Test
public void rankHostWithOneHostOfZeroMemoryUsageTest() {

    List<HostResources> hostsList = new ArrayList<HostResources>();
    HostResources h0 = createHostConfiguringUsedMemory(1024);
    hostsList.add(h0);
    HostResources h1 = createEmptyHost();
    hostsList.add(h1);
    List<HostResources> rankedHostsList = vmsDistributionAlgorithm.rankHosts(hostsList);
    Assert.assertEquals(hostsList.get(1).getUsedMemoryInMegaBytes(), rankedHostsList.get(0).getUsedMemoryInMegaBytes());
    Assert.assertEquals(hostsList.get(0).getUsedMemoryInMegaBytes(), rankedHostsList.get(1).getUsedMemoryInMegaBytes());
    verifyRankHostCalledMethods(hostsList, rankedHostsList);
}