public function testListCollections()
{
$document = ['foo' => 'bar'];
$this->getCollection()->insert($document);
foreach ($this->getDatabase()->listCollections() as $collection) {
$this->assertInstanceOf('MongoCollection', $collection);
if ($collection->getName() === 'test') {
return;
}
}
$this->fail('The test collection was not found');
}