assertTrue(Arrays.asList(1, 2).contains(list.get(0).getId()));
assertTrue(Arrays.asList(1, 2).contains(list.get(1).getId()));
}
public void testSampleDomainQuery22() throws Exception {
QueryFactory qf = Search.getQueryFactory(remoteCache);
Query q = qf.from(User.class)
.not().having("addresses.postCode").like("%123%").toBuilder().build();
List<User> list = q.list();
assertEquals(2, list.size());
assertTrue(Arrays.asList(2, 3).contains(list.get(0).getId()));