/**
  * Tests plugin manager's getDefinitions method.
  */
 public function testGetDefinitions()
 {
     $definitions = array('foo' => array('label' => $this->randomMachineName()));
     $this->discovery->expects($this->once())->method('getDefinitions')->willReturn($definitions);
     $this->assertSame($definitions, $this->sut->getDefinitions());
 }