def METHOD_NAME(self, sonarqube_check):
    check = sonarqube_check({'components': {'foo': {'tag': 'bar'}}, 'default_tag': 'project'})
    check.parse_config()
    tag_name, _ = check._components['foo']
    assert tag_name == 'bar'