public function testWithLibrato()
{
$container = $this->createContainer(array('collectors' => array('full' => array('type' => 'librato', 'source' => 'foo.beberlei.de', 'username' => 'foo', 'password' => 'bar'))));
$collector = $container->get('beberlei_metrics.collector.full');
$this->assertInstanceOf('Beberlei\\Metrics\\Collector\\Librato', $collector);
$this->assertSame('foo.beberlei.de', $this->getProperty($collector, 'source'));
$this->assertSame('foo', $this->getProperty($collector, 'username'));
$this->assertSame('bar', $this->getProperty($collector, 'password'));
}