protected function buildResponse($html, ResponseInterface $response)
    {
        // @codeCoverageIgnoreStart
        $body = new Stream('php://memory', 'w');
        $body->write($html);
        $response = $response->withBody($body);

        return $response;
        // @codeCoverageIgnoreEnd
    }