### Question:
ConditionalUniqueColumnCombinationRanking extends Ranking { protected void calculateColumnRatio(ConditionalUniqueColumnCombinationResult result) { Integer columnCount = result.getColumnCombination().getColumnIdentifiers().size(); Integer tableColumnCount = this.tableInformationMap.get(result.getTableName()).getColumnCount(); result.setColumnRatio((float) columnCount / tableColumnCount); } ConditionalUniqueColumnCombinationRanking(
    List<ConditionalUniqueColumnCombinationResult> results,
    Map<String, TableInformation> tableInformationMap); @Override void calculateDataIndependentRankings(); @Override void calculateDataDependentRankings();  }### Answer:
@Test public void testCalculateColumnRatio() throws Exception { ConditionalUniqueColumnCombinationRanking ranking = new ConditionalUniqueColumnCombinationRanking( results, tableInformationMap); ConditionalUniqueColumnCombinationResult result = results.get(0); ranking.calculateColumnRatio(result); assertEquals(0.5, result.getColumnRatio(), 0.0); }