assertEquals(1, list.get(0).getAccountId());
assertEquals(1500, list.get(0).getAmount(), 0);
}
public void testBetween1() throws Exception {
QueryFactory qf = Search.getSearchManager(cache).getQueryFactory();
// all the transactions that happened in January 2013
Query q = qf.from(Transaction.class)
.having("date").between(DATE_FORMAT.parse("2013-01-01"), DATE_FORMAT.parse("2013-01-31"))
.toBuilder().build();
List<Transaction> list = q.list();
assertEquals(4, list.size());