### Question:
InclusionDependencyRanking extends Ranking { protected void calculateOccurrenceRatios(InclusionDependencyResult result) { List<ColumnIdentifier> referenced = result.getReferenced().getColumnIdentifiers(); result.setReferencedOccurrenceRatio( calculateOccurrenceRatio(referenced, result.getReferencedTableName())); List<ColumnIdentifier> dependant = result.getDependant().getColumnIdentifiers(); result.setDependantOccurrenceRatio( calculateOccurrenceRatio(dependant, result.getDependantTableName())); } InclusionDependencyRanking(List<InclusionDependencyResult> results,
                                    Map<String, TableInformation> tableInformationMap); @Override void calculateDataIndependentRankings(); @Override void calculateDataDependentRankings();  }### Answer:
@Test public void testCalculateColumnCountOccurrenceRatios() throws Exception { InclusionDependencyRanking ranking = new InclusionDependencyRanking(inclusionDependencyResults, tableInformationMap); InclusionDependencyResult result = inclusionDependencyResults.get(0); ranking.calculateOccurrenceRatios(result); assertEquals(0.5, result.getDependantOccurrenceRatio(), 0.0); assertEquals(0.5, result.getReferencedOccurrenceRatio(), 0.0); }