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