### Question:
ScoreCalculatorCommon { public static double getClusterOverCapacityScore(ClusterState clusterState) { double result = 0; for (Host host: clusterState.getHosts()) { result += host.getOverCapacityScore(clusterState.getVms()); } return result; }  static double getClusterOverCapacityScore(ClusterState clusterState); static double getClusterPenaltyScoreForFixedVms(ClusterState clusterState); final static int PENALTY_FOR_MOVING_FIXED_VMS; }### Answer:
@Test public void overcapacityScoreIsPositiveWhenThereIsOverBooking() { assertEquals(-12, ScoreCalculatorCommon.getClusterOverCapacityScore( getClusterWithOverbooking()), DOUBLE_COMPARISON_DELTA); }
@Test public void overcapacityScoreIsZeroWhenThereIsNoOverBooking() { assertEquals(0, ScoreCalculatorCommon.getClusterOverCapacityScore( getClusterWithoutOverbooking()), DOUBLE_COMPARISON_DELTA); }