### Question:
NDCG extends DiscountedCumulativeGain2002 { public NDCG(int atN) { super("ndcg", atN); } NDCG(int atN); @Override double score(Judgments judgments, SearchResultSet searchResultSet); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testNDCG() { NDCG ndcg = new NDCG(10); Assertions.assertEquals(0.785, ndcg.score(JUDGMENTS, RESULT_SET), 0.001); }