@Test
public void removeAll() {

    final DBCursor cursor = new MockDBCursor(this.collection, toDBObjectArray(this.tests));
    this.executor.cursor = cursor;
    Iterable<TestClass> found = this.executor.find(this.query);
    for (int i = 0; i < this.tests.length; i++) {
        assertEquals(this.tests[i], found.iterator().next());
    }
    this.executor.removeAll(TestClass.class);
    found = this.executor.find(this.query);
    assertFalse(found.iterator().hasNext());
}