### Question:
ScoreCalculatorPrice implements SimpleScoreCalculator<ClusterState> { @Override public HardMediumSoftScore calculateScore(ClusterState solution) { return HardMediumSoftScore.valueOf( calculateHardScore(solution), calculateSoftScore(solution), -VmPlacementConfig.initialClusterState.get().countVmMigrationsNeeded(solution)); }  @Override HardMediumSoftScore calculateScore(ClusterState solution);  }### Answer:
@Test public void scoreTest() { ClusterState testClusterState = getTestClusterState(); List<Vm> vmsInHost1 = new ArrayList<>(); vmsInHost1.add(vm1); List<Vm> vmsInHost2 = new ArrayList<>(); vmsInHost2.add(vm2); mockPriceModeller(vmsInHost1, vmsInHost2); ScoreCalculatorPrice scoreCalculatorPrice = new ScoreCalculatorPrice(); assertEquals(0, scoreCalculatorPrice.calculateScore(testClusterState).getHardScore()); assertEquals(-30, scoreCalculatorPrice.calculateScore(testClusterState).getMediumScore()); }