async def METHOD_NAME():
    payload = json.dumps(new_actor)
    name_payload = generate_actor()
    name_payload["name"] = new_actor["name"]
    name_payload = json.dumps(name_payload)
    did_payload = generate_actor()
    did_payload["did"] = new_actor["did"]
    did_payload = json.dumps(did_payload)
    didcomm_payload = generate_actor()
    didcomm_payload["didcomm_invitation"] = new_actor["didcomm_invitation"]
    didcomm_payload = json.dumps(didcomm_payload)
    id_payload = generate_actor()
    id_payload["id"] = new_actor["id"]
    id_payload = json.dumps(id_payload)
    async with AsyncClient() as client:
        response = await client.post(
            f"{TRUST_REGISTRY_URL}/registry/actors",
            content=payload,
        )
        assert response.json() == json.loads(payload)
        assert response.status_code == 200
        new_actor_resp = await client.get(f"{TRUST_REGISTRY_URL}/registry/actors")
        assert new_actor_resp.status_code == 200
        new_actors = new_actor_resp.json()
        assert new_actor["id"] in [actor["id"] for actor in new_actors["actors"]]
        response = await client.post(
            f"{TRUST_REGISTRY_URL}/registry/actors",
            content=name_payload,
        )
        assert response.status_code == 409
        assert "Bad request: An actor with name:" in response.json()["detail"]
        response = await client.post(
            f"{TRUST_REGISTRY_URL}/registry/actors",
            content=did_payload,
        )
        assert response.status_code == 409
        assert "Bad request: An actor with DID:" in response.json()["detail"]
        response = await client.post(
            f"{TRUST_REGISTRY_URL}/registry/actors",
            content=didcomm_payload,
        )
        assert response.status_code == 409
        assert "Bad request: An actor with DIDComm" in response.json()["detail"]
        response = await client.post(
            f"{TRUST_REGISTRY_URL}/registry/actors",
            content=id_payload,
        )
        assert response.status_code == 409
        assert "Bad request: An actor with ID:" in response.json()["detail"]