@Test
public void calculateHostScoreTest() {

    HostResources hostToStart = Mockito.mock(HostResources.class);
    Mockito.when(hostToStart.getCpuOverprovisioning()).thenReturn(1f);
    Mockito.when(hostToStart.getCpus()).thenReturn(2);
    Mockito.when(hostToStart.getSpeed()).thenReturn(1000l);
    Mockito.when(hostToStart.getMemoryOverprovisioning()).thenReturn(2f);
    Mockito.when(hostToStart.getTotalMemoryInBytes()).thenReturn(1000l);
    double result = spyAlgorithm.calculateHostScore(hostToStart);
    Assert.assertEquals(4000000, result, 0f);
}