public function testInsertWriteConcernException()
{
$this->setExpectedException('MongoWriteConcernException', "cannot use 'w' > 1 when a host is not replicated");
$document = ['foo' => 'bar'];
$this->getCollection()->insert($document, ['w' => 2]);
}