### Question:
ConditionalUniqueColumnCombinationRanking extends Ranking { protected void calculateOccurrenceRatio(ConditionalUniqueColumnCombinationResult result) { Set<ColumnIdentifier> columns = result.getColumnCombination().getColumnIdentifiers(); String tableName = result.getTableName(); result.setOccurrenceRatio(calculateOccurrenceRatio(columns, tableName)); } ConditionalUniqueColumnCombinationRanking(
    List<ConditionalUniqueColumnCombinationResult> results,
    Map<String, TableInformation> tableInformationMap); @Override void calculateDataIndependentRankings(); @Override void calculateDataDependentRankings();  }### Answer:
@Test public void testCalculateOccurrenceRatio() throws Exception { ConditionalUniqueColumnCombinationRanking ranking = new ConditionalUniqueColumnCombinationRanking( results, tableInformationMap); ConditionalUniqueColumnCombinationResult result = results.get(0); ranking.calculateOccurrenceRatio(result); assertEquals(1.0, result.getOccurrenceRatio(), 0.0); }