public function setUp()
{
parent::setup();
vfsStream::setup('Foo');
$this->httpRequest = Http\Request::create(new Http\Uri('http://localhost'));
$this->httpResponse = new Http\Response();
$mockRequestHandler = $this->createMock(Http\RequestHandler::class);
$mockRequestHandler->expects($this->any())->method('getHttpRequest')->will($this->returnValue($this->httpRequest));
$mockRequestHandler->expects($this->any())->method('getHttpResponse')->will($this->returnValue($this->httpResponse));
$this->mockBootstrap = $this->createMock(Bootstrap::class);
$this->mockBootstrap->expects($this->any())->method('getActiveRequestHandler')->will($this->returnValue($mockRequestHandler));
$this->mockSecurityContext = $this->createMock(Context::class);
$this->mockObjectManager = $this->createMock(ObjectManagerInterface::class);
$this->mockObjectManager->expects($this->any())->method('get')->with(Context::class)->will($this->returnValue($this->mockSecurityContext));
}