EDBObject v1 = new EDBObject("/test/query/15/1", data1);
Map<String, EDBObjectEntry> data2 = new HashMap<>();
putValue("Animal", "Dog", data2);
putValue("Cow", "Milk", data2);
EDBObject v2 = new EDBObject("/test/query/15/2", data2);
EDBCommit commit = getEDBCommit();
commit.insert(v1);
commit.insert(v2);
db.commit(commit);
Map<String, EDBObjectEntry> data3 = new HashMap<>();
putValue("House", "Garden", data3);
EDBObject v3 = new EDBObject("/test2/query/15/3", data3);
Map<String, EDBObjectEntry> data4 = new HashMap<>();
putValue("Cheese", "Cheddar", data4);
putValue("Animal", "Dog", data4);
EDBObject v4 = new EDBObject("/test2/query/15/4", data4);
commit = getEDBCommit();
commit.insert(v3);
commit.insert(v4);
db.commit(commit);
QueryRequest request = QueryRequest.create().orJoined();
request.addParameter("Animal", "Dog");
assertThat(db.query(request).size(), is(2));
request.setContextId("/test");