### Question:
ScoreCalculatorGroupByApp implements SimpleScoreCalculator<ClusterState> { @Override public BendableScore calculateScore(ClusterState solution) { int[] hardScores = { calculateHardScore(solution) }; int[] softScores = { solution.countOffHosts(), calculateSoftScore2(solution), -VmPlacementConfig.initialClusterState.get().countVmMigrationsNeeded(solution)}; return BendableScore.valueOf(hardScores, softScores); }  @Override BendableScore calculateScore(ClusterState solution);  }### Answer:
@Test public void scoreTest() { ClusterState clusterState = getTestClusterState(); assertEquals(2, scoreCalculatorGroupByApp.calculateScore(clusterState).getSoftScore(1)); assertEquals(1, scoreCalculatorGroupByApp.calculateScore(clusterState).getSoftScore(0)); assertEquals(-4, scoreCalculatorGroupByApp.calculateScore(clusterState).getHardScore(0)); }