@Test
void performMultiOptionInsert() {

    MongoCollection<Document> collection = this.connector.getDatabase().getCollection("update_query");
    collection.deleteMany(new BsonDocument());
    assertEquals(0, collection.count());
    List<Document> samples = new ArrayList<>();
    for (int i = 0; i < 100; i++) {
        samples.add(sample(i));
    }
    MongoInsertQuery query = new MongoInsertQuery(collection, samples, new InsertManyOptions());
    query.performQuery();
    assertEquals(100, collection.count());
    Bson filters = Filters.eq("updated", false);
    Bson doc = Updates.combine(Updates.set("updated", true));
    MongoUpdateQuery updateQuery = new MongoUpdateQuery(collection, filters, doc, true, new UpdateOptions());
    updateQuery.performQuery();
    assertTrue(checkForNonUpdated(collection));
    new MongoDeleteQuery(collection, new BsonDocument(), true, new DeleteOptions()).performQuery();
    assertEquals(0, collection.count());
}