def METHOD_NAME(self):
    def inner1(_chain: HandlerChain, request: RequestContext, response: Response):
        _chain.stop()
    inner2 = mock.MagicMock()
    outer1 = mock.MagicMock()
    outer2 = mock.MagicMock()
    response1 = mock.MagicMock()
    chain = HandlerChain()
    composite = CompositeHandler()
    composite.handlers.append(inner1)
    composite.handlers.append(inner2)
    chain.request_handlers.append(outer1)
    chain.request_handlers.append(composite)
    chain.request_handlers.append(outer2)
    chain.response_handlers.append(response1)
    chain.handle(RequestContext(), Response())
    outer1.assert_called_once()
    outer2.assert_not_called()
    inner2.assert_not_called()
    response1.assert_called_once()