public function testGetConnection() { $connections = $this->object->listConnections()->toArray(); $expectedConnection = array_pop($connections); $connection = $this->object->getConnection($expectedConnection->name); $this->assertInstanceOf('RabbitMQ\\Management\\Entity\\Connection', $connection); $this->assertEquals($expectedConnection, $connection); }