def METHOD_NAME(self, mock_create_substitutions, mock_process_attribute):
    def init_substitutions():
        self.processor.substitutions = {}
    mock_create_substitutions.side_effect = init_substitutions
    target = ClassFactory.create(
        attrs=[AttrFactory.enumeration(), AttrFactory.any(), AttrFactory.element()]
    )
    self.processor.process(target)
    self.processor.process(ClassFactory.create())
    mock_process_attribute.assert_called_once_with(target, target.attrs[2])
    mock_create_substitutions.assert_called_once()