async def METHOD_NAME(
    setting: ProxySettings,
    proxy_listener: SimpleProxyListener,
) -> AsyncIterator[Proxy]:
    """Test subject."""
    p = Proxy("proxy", proxy_listener, setting)
    task = asyncio.get_running_loop().create_task(p.run())
    yield p
    task.cancel()
    try:
        await task
    except asyncio.CancelledError:
        pass