@Test
public void hostVMsResourceProportionTest() {

    HostProfile hostProfile = spyProfiler.hostVMsResourceProportion(createHost(4, 1000l, 0l, 5000l, 0l));
    Assert.assertNotNull(hostProfile);
    Assert.assertEquals(1.0, hostProfile.getCpuSpeedProfile(), 0.0);
    Assert.assertEquals(4, hostProfile.getCpusProfile(), 0.0);
    Assert.assertEquals(10, hostProfile.getMemoryProfile(), 0.0);
    InOrder inOrder = Mockito.inOrder(spyProfiler);
    inOrder.verify(spyProfiler).getHostsVmsResources();
    inOrder.verify(spyProfiler).createClusterVmsProfile(Mockito.any(ClusterVmProfile.class));
}