public void testIfQueryForDeletedObjects_onlyReturnsDeletedObjects() {
EDBObject v1 = createRandomTestObject("/test/query/16/1");
commitObjects(Lists.newArrayList(v1), null, null);
commitObjects(null, null, Lists.newArrayList(v1));
QueryRequest request = QueryRequest.create();
List<EDBObject> result = db.query(request);
assertThat(result.size(), is(0));
result = db.query(request.deleted());
assertThat(result.size(), is(1));
}