public function testWithPrometheus()
{
$prometheusCollectorRegistryMock = $this->getMockBuilder('\\Prometheus\\CollectorRegistry')->disableOriginalConstructor()->getMock();
$container = $this->createContainer(array('collectors' => array('prometheus' => array('type' => 'prometheus', 'prometheus_collector_registry' => 'prometheus_collector_registry_mock'))), array('prometheus_collector_registry_mock' => $prometheusCollectorRegistryMock));
$collector = $container->get('beberlei_metrics.collector.prometheus');
$this->assertInstanceOf('Beberlei\\Metrics\\Collector\\Prometheus', $collector);
$this->assertSame($prometheusCollectorRegistryMock, $this->getProperty($collector, 'collectorRegistry'));
$this->assertSame('', $this->getProperty($collector, 'namespace'));
}