### Question:
InclusionDependencyRanking extends Ranking { protected void calculateGeneralCoverage(InclusionDependencyResult result) { Integer referencedColumnCount = result.getReferenced().getColumnIdentifiers().size(); Integer dependantColumnCount = result.getDependant().getColumnIdentifiers().size(); int tableCount; if (result.getReferencedTableName().equals(result.getDependantTableName())) { tableCount = this.tableInformationMap.get(result.getReferencedTableName()).getColumnCount(); } else { tableCount = this.tableInformationMap.get(result.getReferencedTableName()).getColumnCount() + this.tableInformationMap.get(result.getDependantTableName()).getColumnCount(); } result.setGeneralCoverage(((float) referencedColumnCount + dependantColumnCount) / tableCount); } InclusionDependencyRanking(List<InclusionDependencyResult> results,
                                    Map<String, TableInformation> tableInformationMap); @Override void calculateDataIndependentRankings(); @Override void calculateDataDependentRankings();  }### Answer:
@Test public void testCalculateGeneralCoverage() throws Exception { InclusionDependencyRanking ranking = new InclusionDependencyRanking(inclusionDependencyResults, tableInformationMap); InclusionDependencyResult result = inclusionDependencyResults.get(1); ranking.calculateGeneralCoverage(result); assertEquals(0.5, result.getGeneralCoverage(), 0.0); }