### Question:
OrderDependencyRanking extends Ranking { protected void calculateUniquenessRatios(OrderDependencyResult result) { float lhsUniqueRatio = calculateUniquenessRatio( this.tableInformationMap.get(result.getLhsTableName()), new HashSet<>(result.getLhs().getColumnIdentifiers())); result.setLhsUniquenessRatio(lhsUniqueRatio); float rhsUniqueRatio = calculateUniquenessRatio( this.tableInformationMap.get(result.getRhsTableName()), new HashSet<>(result.getRhs().getColumnIdentifiers())); result.setRhsUniquenessRatio(rhsUniqueRatio); } OrderDependencyRanking(List<OrderDependencyResult> results,
                                Map<String, TableInformation> tableInformationMap); @Override void calculateDataIndependentRankings(); @Override void calculateDataDependentRankings();  }### Answer:
@Test public void testCalculateUniquenessRatio() throws Exception { OrderDependencyRanking ranking = new OrderDependencyRanking(orderDependencyResults, tableInformationMap); OrderDependencyResult result = orderDependencyResults.get(1); ranking.calculateUniquenessRatios(result); assertEquals(0.0, result.getLhsUniquenessRatio(), 0.0); assertEquals(1.0, result.getRhsUniquenessRatio(), 0.0); }