'Submit each payload to its specific endpoint.'

def test_emit_payload(self):

    agent_payload = AgentPayload()
    fake_emitter = Mock()
    fake_emitter.__name__ = None
    agent_payload.emit(None, None, [fake_emitter], True, merge_payloads=False)
    fake_emitter.assert_any_call(agent_payload.data_payload, None, None, 'metrics')
    fake_emitter.assert_any_call(agent_payload.meta_payload, None, None, 'metadata')
    agent_payload.emit(None, None, [fake_emitter], True)
    fake_emitter.assert_any_call(agent_payload.payload, None, None, '')
