public function setUp()
{
$request = new Request();
$response = new Response();
$this->controller = $this->getMockBuilder('Cake\\Controller\\Controller')->setMethods(null)->setConstructorArgs([$request, $response])->getMock();
$this->registry = new ComponentRegistry($this->controller);
}