@Test
public void remove() {

    final DBCursor cursor = new MockDBCursor(this.collection, toDBObject(this.t1));
    this.executor.cursor = cursor;
    TestClass found = this.executor.findOne(this.query);
    assertEquals(this.t1, found);
    this.executor.remove(
            QueryBuilder.builderFor(this.entityClass).
            add(Restrictions.eq(ID_PROPERTY_NAME, 1)).
            build());
    found = this.executor.findOne(this.query);
    assertNull(found);
}