public function testReadPreferenceIsInherited()
{
$collection = $this->getCollection();
$collection->setReadPreference(\MongoClient::RP_SECONDARY, [['a' => 'b']]);
$cursor = $collection->find(['foo' => 'bar']);
$this->assertSame(['type' => \MongoClient::RP_SECONDARY, 'tagsets' => [['a' => 'b']]], $cursor->getReadPreference());
}