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