public function testSetterGetter()
 {
     $time = new \DateTime();
     $parent = $this->getMockBuilder('Sonata\\BlockBundle\\Model\\Block')->getMock();
     $block = new Block();
     $block->setCreatedAt($time);
     $block->setUpdatedAt($time);
     $block->setEnabled(true);
     $block->setPosition(1);
     $block->setType('foo.bar');
     $block->setParent($parent);
     $this->assertEquals($time, $block->getCreatedAt());
     $this->assertEquals($time, $block->getUpdatedAt());
     $this->assertTrue($block->getEnabled());
     $this->assertEquals(1, $block->getPosition());
     $this->assertEquals('foo.bar', $block->getType());
     $this->assertEquals($parent, $block->getParent());
 }