def METHOD_NAME(self):
    task = create_task(
        AddFieldsToFieldSet,
        {
            "field_set": "Case.Garbage",
            "fields": ["IncidentDateTime__c", "LocationNotes__c"],
        },
    )
    tree = metadata_tree.fromstring(OBJECT_XML)
    with pytest.raises(TaskOptionsError):
        task._transform_entity(tree, "Case")