def METHOD_NAME(self):
    """
    Test that the `retrieve_asset_permissions` function calls
    the External service with the correct payload
    """
    session_mock = MagicMock()
    asset_id = "some_id"
    service_url = "http://example.com"
    resp = Response()
    resp.status_code = 200
    # pylint: disable=protected-access
    resp._content = (
        b'[{"user": "http://example.com/api/v2/users/bob", "url": '
        b'"http://example.com/api/v2/permission-assignments/some_uuid"}]'
    )
    session_mock.get.return_value = resp
    ret = retrieve_asset_permissions(service_url, asset_id, session_mock)
    session_mock.get.assert_called()
    session_mock.get.assert_called_with(
        f"{service_url}/api/v2/assets/{asset_id}/permission-assignments/"
    )
    self.assertEqual(
        ret, {"bob": ["http://example.com/api/v2/permission-assignments/some_uuid"]}
    )