def METHOD_NAME(self):
    # create mock environment
    router = Router(dispatcher=handler_dispatcher())
    collector = _RequestCollectingClient()
    handler = S3VirtualHostProxyHandler()
    handler._create_proxy = collector.create_proxy
    # add rules
    add_s3_vhost_rules(router, handler)
    with pytest.raises(NotFound):
        # test key with path
        router.dispatch(
            Request(
                path="/abucket/my/key", headers={"Host": "s3.localhost.localstack.cloud:4566"}
            )
        )