MatchingQueryTerms mqt;
ResultSet rs;
mqt = new MatchingQueryTerms();
mqt.setTermProperty("quick", 1);
mqt.setDefaultTermWeightingModel(new DLH13());
rs = matching.match("query1", mqt);
assertNotNull(rs);
assertEquals(1, rs.getResultSize());
assertEquals(0, rs.getDocids()[0]);
assertTrue(rs.getScores()[0] > 0);
mqt = new MatchingQueryTerms();
mqt.setTermProperty("dog", 1);
mqt.setDefaultTermWeightingModel(new DLH13());
rs = matching.match("query2", mqt);
assertNotNull(rs);
assertEquals(2, rs.getResultSize());
assertTrue(rs.getScores()[0] > 0);
assertTrue(rs.getScores()[1] > 0);