def METHOD_NAME(self):
    task = create_task(
        SetObjectSettings,
        {
            "api_names": "Test__c",
            "enable": ["Activities"],
        },
    )
    tree = metadata_tree.fromstring(CUSTOMOBJECT_SETTINGS_XML)
    result = task._transform_entity(tree, "Test__c")
    entry = result._element.findall(f".//{MD}enableActivities")
    assert len(entry) == 1
    assert entry[0].text == "true"