assertThat(results.get(1).string, equalTo("ten"));
}
@Test
public void testQueryWithLimitedKeysFromJavaObject() {
coll.insert(new MockObject("ten", 10));
coll.insert(new MockObject("ten", 100));
coll.insert(new MockObject("twenty", 20));
List<MockObject> results = coll.find(new MockObject("ten", null),
new MockObject("something not null", null)).toArray();
assertThat(results, hasSize(2));
assertThat(results.get(0).integer, nullValue());
assertThat(results.get(0).string, equalTo("ten"));
assertThat(results.get(1).integer, nullValue());
assertThat(results.get(1).string, equalTo("ten"));