### Question:
InclusionDependencyRanking extends Ranking { protected void calculateColumnRatios(InclusionDependencyResult result) { Integer referencedColumnCount = result.getReferenced().getColumnIdentifiers().size(); Integer dependantColumnCount = result.getDependant().getColumnIdentifiers().size(); Integer referencedTableColumnCount = this.tableInformationMap.get(result.getReferencedTableName()).getColumnCount(); Integer dependantTableColumnCount = this.tableInformationMap.get(result.getDependantTableName()).getColumnCount(); result.setReferencedColumnRatio((float) referencedColumnCount / referencedTableColumnCount); result.setDependantColumnRatio((float) dependantColumnCount / dependantTableColumnCount); } InclusionDependencyRanking(List<InclusionDependencyResult> results,
                                    Map<String, TableInformation> tableInformationMap); @Override void calculateDataIndependentRankings(); @Override void calculateDataDependentRankings();  }### Answer:
@Test public void testCalculateColumnRatios() throws Exception { InclusionDependencyRanking ranking = new InclusionDependencyRanking(inclusionDependencyResults, tableInformationMap); InclusionDependencyResult result = inclusionDependencyResults.get(1); ranking.calculateColumnRatios(result); assertEquals(0.25, result.getDependantColumnRatio(), 0.0); assertEquals(0.25, result.getReferencedColumnRatio(), 0.0); }