def test_forwards_response(self):
        expected_arguments = {'argument': 42}
        expected_response = {'response': 7}
        client = FakeAMPClient()
        client.register_response(
            TestCommand, expected_arguments, expected_response)
        delayed_client = DelayedAMPClient(client)

        d = delayed_client.callRemote(TestCommand, **expected_arguments)

        delayed_client.respond()
        self.assertEqual(
            self.successResultOf(d),
            expected_response,
        )

    # Missing test: Handling of multiple calls.
Logged Twisted messages get written to standard out as ``eliot``
dataset/ETHPy150Open ClusterHQ/flocker/flocker/testtools/test/test_amp.py/DelayedAMPClientTests.test_forwards_response--crossover with--dataset/ETHPy150Open ClusterHQ/flocker/flocker/common/functional/test_script.py/FlockerScriptRunnerTests.test_twisted_messages