### Question:
ConditionalUniqueColumnCombinationRanking extends Ranking { protected void calculateUniquenessRatio(ConditionalUniqueColumnCombinationResult result) { TableInformation table = this.tableInformationMap.get(result.getTableName()); Set<ColumnIdentifier> columns = result.getColumnCombination().getColumnIdentifiers(); result.setUniquenessRatio(calculateUniquenessRatio(table, columns)); } ConditionalUniqueColumnCombinationRanking(
    List<ConditionalUniqueColumnCombinationResult> results,
    Map<String, TableInformation> tableInformationMap); @Override void calculateDataIndependentRankings(); @Override void calculateDataDependentRankings();  }### Answer:
@Test public void testCalculateUniquenessRatio() throws Exception { ConditionalUniqueColumnCombinationRanking ranking = new ConditionalUniqueColumnCombinationRanking( results, tableInformationMap); ConditionalUniqueColumnCombinationResult result = results.get(0); ranking.calculateUniquenessRatio(result); assertEquals(0.5, result.getUniquenessRatio(), 0.0); }