def METHOD_NAME(protocols):
    flow = Flow().config_gateway(protocol=protocols).add(uses=MyExecutor)
    with flow:
        for protocol in protocols:
            client = Client(port=flow.port, protocol=protocol)
            docs = client.post('/', inputs=[Document()])
            for doc in docs:
                assert doc.text == 'processed'