def METHOD_NAME(self):
    yaml = """
        extract:
            OBJECTS(XYZZY):
                fields: FIELDS(CUSTOM)
    """
    with pytest.raises(ValidationError, match="xyzzy"):
        ExtractRulesFile.parse_from_yaml(StringIO(yaml))
    yaml = """
        extract:
            OBJECTS(XYZZY):
                fields:
                    - FIELDS(CUSTOM)
    """
    with pytest.raises(ValidationError, match="xyzzy"):
        ExtractRulesFile.parse_from_yaml(StringIO(yaml))
    yaml = """
        extract:
            OBJECTS(POPULATED):
                fields: FIELDS(XYZZY)
    """
    with pytest.raises(ValidationError, match="XYZZY"):
        ExtractRulesFile.parse_from_yaml(StringIO(yaml))
    yaml = """
        extract:
            OBJECTS(POPULATED):
                fields:
                    - FIELDS(XYZZY)
    """
    with pytest.raises(ValidationError, match="XYZZY"):
        ExtractRulesFile.parse_from_yaml(StringIO(yaml))
    yaml = """
        extract:
            OBJECTS(POPULATED):
                fields:
                    - abcde
                    - FIELDS(XYZZY)
    """
    with pytest.raises(ValidationError, match="XYZZY"):
        ExtractRulesFile.parse_from_yaml(StringIO(yaml))
    yaml = """
        extract:
            abcd.efgh:
                fields:
                    - Id
    """
    with pytest.raises(ValidationError, match="abcd.efgh"):
        ExtractRulesFile.parse_from_yaml(StringIO(yaml))
    yaml = """
        extract:
            OBJECTS(POPULATED):
                fields: XYZZY(CUSTOM)
    """
    with pytest.raises(ValidationError, match="XYZZY"):
        ExtractRulesFile.parse_from_yaml(StringIO(yaml))
    yaml = """
        extract:
            OBJECTS(POPULATED):
                fields:
                    - XYZZY(CUSTOM)
    """
    with pytest.raises(ValidationError, match="XYZZY"):
        ExtractRulesFile.parse_from_yaml(StringIO(yaml))