def METHOD_NAME(self):
    xml = '<annotation title="x" body="y" problem="0" highlight="{highlight}">test</annotation>'
    for color in self.annotatable.HIGHLIGHT_COLORS:
        el = etree.fromstring(xml.format(highlight=color))
        value = f'annotatable-span highlight highlight-{color}'
        expected_attr = {
            'class': {
                'value': value,
                '_delete': 'highlight'
            }
        }
        actual_attr = self.annotatable._get_annotation_class_attr(0, el)  # lint-amnesty, pylint: disable=protected-access
        assert isinstance(actual_attr, dict)
        self.assertDictEqual(expected_attr, actual_attr)