@Test
  public void testCostBenefitInfo() {
    for (int i = 0; i < 5; i++) {
      List<LogSegmentName> randomSegments = CompactionPolicyTest.generateRandomLogSegmentName(3);
      long cost = getRandomCost();
      int benefit = 1 + TestUtils.RANDOM.nextInt(Integer.MAX_VALUE);
      CostBenefitInfo actual = new CostBenefitInfo(randomSegments, cost, benefit);
      verifyCostBenfitInfo(actual, randomSegments, cost, benefit, cost * (1.0 / benefit));
    }
  }
Tests {@link CostBenefitInfo} for construction and getters
ambry-store/src/test/java/com/github/ambry/store/CostBenefitInfoTest.java