public function testAddType()
 {
     $name = 'test';
     $type = $this->getMock('Oro\\Component\\Layout\\BlockTypeInterface');
     $type->expects($this->once())->method('getName')->will($this->returnValue($name));
     $layoutFactory = $this->layoutFactoryBuilder->addType($type)->getLayoutFactory();
     $this->assertSame($type, $layoutFactory->getRegistry()->getType($name));
 }