final Cache<Long, BondPVO2> cache = cm.getCache();
final SearchManager sm = Search.getSearchManager(cache);
final BondPVO2 bond = new BondPVO2(1, "Test", "DE000123");
cache.put(bond.getId(), bond);
final QueryBuilder qb = sm.buildQueryBuilderForClass(BondPVO2.class)
.get();
final Query q = qb.keyword().onField("name").matching("Test")
.createQuery();
final CacheQuery cq = sm.getQuery(q, BondPVO2.class);
Assert.assertEquals(cq.getResultSize(), 1);