assertEquals(discs[2], res.get(1));
}
public void testSearchSingleFieldBeginSeveralResultsKeysOnly() {
Discovery4Search[] discs = new Discovery4Search[5];
discs[0] = new Discovery4Search("alpha", LongAutoID_CURIE);
discs[1] = new Discovery4Search("beta", LongAutoID_CURIE);
discs[2] = new Discovery4Search("alphagamma", 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("alpha*", "name");