### Question:
OrderDependencyRanking extends Ranking { protected void calculateColumnRatios(OrderDependencyResult result) { Integer lhsColumnCount = result.getLhs().getColumnIdentifiers().size(); Integer rhsColumnCount = result.getRhs().getColumnIdentifiers().size(); Integer lhsTableColumnCount = this.tableInformationMap.get(result.getLhsTableName()).getColumnCount(); Integer rhsTableColumnCount = this.tableInformationMap.get(result.getRhsTableName()).getColumnCount(); result.setLhsColumnRatio((float) lhsColumnCount / lhsTableColumnCount); result.setRhsColumnRatio((float) rhsColumnCount / rhsTableColumnCount); } OrderDependencyRanking(List<OrderDependencyResult> results,
                                Map<String, TableInformation> tableInformationMap); @Override void calculateDataIndependentRankings(); @Override void calculateDataDependentRankings();  }### Answer:
@Test public void testCalculateColumnRatio() throws Exception { OrderDependencyRanking ranking = new OrderDependencyRanking(orderDependencyResults, tableInformationMap); OrderDependencyResult result = orderDependencyResults.get(0); ranking.calculateColumnRatios(result); assertEquals(0.25, result.getLhsColumnRatio(), 0.0); assertEquals(0.25, result.getRhsColumnRatio(), 0.0); }