assertEquals(discs[4], res.get(0));
}
public void testSearchSingleFieldEqualsSeveralResults() {
Discovery4Search[] discs = new Discovery4Search[5];
discs[0] = new Discovery4Search("alpha", LongAutoID_CURIE);
discs[1] = new Discovery4Search("beta", LongAutoID_CURIE);
discs[2] = new Discovery4Search("gamma", LongAutoID_CURIE);
discs[3] = new Discovery4Search("delta", LongAutoID_CURIE);
discs[4] = new Discovery4Search("eta", LongAutoID_CURIE);
pm.insert((Object[])discs);
Query<Discovery4Search> query =
pm.createQuery(Discovery4Search.class).search("beta eta", "name");