private void verifyCostBenfitInfo(CostBenefitInfo actual, List<LogSegmentName> segmentNames, long cost, int benefit,
      double costBenefitRatio) {
    assertEquals("Log segment names mismatch ", segmentNames, actual.getSegmentsToCompact());
    assertEquals("Cost mismatch ", cost, actual.getCost());
    assertEquals("Benefit mismatch ", benefit, actual.getBenefit());
    assertTrue("CostBenefitRatio mismatch ", actual.getCostBenefitRatio().compareTo(costBenefitRatio) == 0);
  }
Verifies {@link CostBenefitInfo} for expected values
@param actual {@link CostBenefitInfo} to be compared against
@param segmentNames expected segment names of this candidate
@param cost expected cost
@param benefit expected benefit
@param costBenefitRatio expected cost benefit ratio
ambry-store/src/test/java/com/github/ambry/store/CostBenefitInfoTest.java