private function prepareRequest(ServerRequestInterface $request)
    {
        $serverData = [
            'SCRIPT_NAME' => '/base/test.php',
            'HTTPS' => 'not-empty',
            'SERVER_PORT' => '12541',
            'SERVER_NAME' => 'localhost',
        ];
        $request->getServerParams()
            ->shouldBeCalled()
            ->willReturn($serverData);
        $request->getQueryParams()->willReturn(
            ['foo' => 'bar', 'baz' => 'bar']
        );
        $this->setRequest($request);
    }