public function testSetWriteConcern_Error()
{
$mongoDatabaseMock = $this->getMock('\\MongoDB', array('setWriteConcern'), array($this->database->getClient()->getMongoClient(), 'test'));
$mongoDatabaseMock->expects($this->once())->method('setWriteConcern')->will($this->returnValue(false));
$database = new Database($this->database->getClient(), $mongoDatabaseMock);
$database->setWriteConcern(1);
}