def METHOD_NAME(self):
    """
    Tests that when the _handle_payload function is called, _metaproxy_call is also called.
    """
    mock_opts = salt.config.DEFAULT_MINION_OPTS.copy()
    mock_opts.update(salt.config.DEFAULT_PROXY_MINION_OPTS)
    mock_data = {"fun": "foo.bar", "jid": 123}
    mock_jid_queue = [123]
    proxy_minion = salt.minion.ProxyMinion(
        mock_opts,
        jid_queue=copy.copy(mock_jid_queue),
        io_loop=tornado.ioloop.IOLoop(),
    )
    mock_metaproxy_call = MagicMock()
    with patch(
        "salt.minion._metaproxy_call",
        return_value=mock_metaproxy_call,
        autospec=True,
    ):
        try:
            ret = proxy_minion._handle_decoded_payload(mock_data).result()
            self.assertEqual(proxy_minion.jid_queue, mock_jid_queue)
            mock_metaproxy_call.assert_called_once()
        finally:
            proxy_minion.destroy()