'Wrap a middleware around a sample application and call it.'

def _do_middleware_response(self, *args, **kwargs):

    app = self.MIDDLEWARE_CLASS(self._application())
    return self._generate_app_response(app, *args, **kwargs)
