### Question:
WeightClassificationUtils { public static WeightClass eqResponseToWeightClass(EqWeightResponse eqWeightResponse) { int badCount = 0; int okCount = 0; int goodCount = 0; WeightClass hiClass = weightHiEqRegister(eqWeightResponse); WeightClass midClass = weightMidEqRegister(eqWeightResponse); WeightClass lowClass = weightLowEqRegister(eqWeightResponse); if (hiClass.equals(WeightClass.BAD)) { badCount++; } if (midClass.equals(WeightClass.BAD)) { badCount++; } if (lowClass.equals(WeightClass.BAD)) { badCount++; } if (hiClass.equals(WeightClass.OK)) { okCount++; } if (midClass.equals(WeightClass.OK)) { okCount++; } if (lowClass.equals(WeightClass.OK)) { okCount++; } if (hiClass.equals(WeightClass.GOOD)) { goodCount++; } if (midClass.equals(WeightClass.GOOD)) { goodCount++; } if (lowClass.equals(WeightClass.GOOD)) { goodCount++; } if (okCount >= goodCount && okCount >= badCount) { return WeightClass.OK; } if (badCount >= goodCount && badCount >= okCount) { return WeightClass.BAD; } return WeightClass.GOOD; }  static WeightClass verticalWeightToClass(String verticalClass); static WeightClass eqResponseToWeightClass(EqWeightResponse eqWeightResponse); static WeightClass weightLowEqRegister(EqWeightResponse eqWeightResponse); static WeightClass weightMidEqRegister(EqWeightResponse eqWeightResponse); static WeightClass weightHiEqRegister(EqWeightResponse eqWeightResponse); static boolean isLowEqRegister(Ratings rating); static boolean isMidEqRegister(Ratings rating); static boolean isHiEqRegister(Ratings rating);  }### Answer:
@Test public void shouldClassifyOveralOk(){ EqWeightResponse eqWeightResponse = new EqWeightResponse(); eqWeightResponse.setEqbands(generateBands()); WeightClass weightClass = WeightClassificationUtils.eqResponseToWeightClass(eqWeightResponse); assertThat(weightClass).isEqualTo(WeightClass.OK); }