/**
  * @covers Mparaiso\SimpleRest\Controller\Controller::addChild
  */
 public function testAddChild()
 {
     $restService1 = new RestServiceMock();
     $restService2 = new RestServiceMock();
     $controller = new Controller(array('service' => $restService1, 'resource' => 'resource'));
     $childController = new Controller(array('service' => $restService2, 'resource' => 'resource'));
     $controller->addChild($childController);
     $this->assertEquals($controller, $childController->parent);
     $this->assertCount(1, $controller->children);
 }