public void testEmbeddedAttributeQuery() throws Exception {
remoteCache0.put(1, createUser1());
remoteCache1.put(2, createUser2());
// get user back from remote cache via query and check its attributes
QueryFactory qf = Search.getQueryFactory(remoteCache1);
Query query = qf.from(User.class)
.having("addresses.postCode").eq("1234").toBuilder()
.build();
List<User> list = query.list();
assertNotNull(list);
assertEquals(1, list.size());