@Test
public void testIterateByQuery() {

    dao.create(TestUser.builder().name("Bob 01").active(true).build());
    dao.create(TestUser.builder().name("Bob 02").active(true).build());
    Iterable<TestUser> iterable = dao.iterateByQuery(new Document("active", true), new Document("name", 1));
    Iterator<TestUser> iterator = iterable.iterator();
    TestUser user1 = iterator.next();
    TestUser user2 = iterator.next();
    assertFalse(iterator.hasNext());
    assertEquals("Bob 01", user1.getName());
    assertEquals("Bob 02", user2.getName());
}