public function testLockConfiguration()
{
$client = new Client(getenv('PHPMONGO_DSN') ? getenv('PHPMONGO_DSN') : null);
$client->map(array('test' => array('phpmongo_test_collection' => array('lock' => Definition::LOCK_OPTIMISTIC))));
$this->assertEquals(Definition::LOCK_OPTIMISTIC, $client->getDatabase('test')->getCollection('phpmongo_test_collection')->getOption('lock'));
}