def METHOD_NAME(self, sonarqube_check):
    check = sonarqube_check({'components': {'foo': {}, 'bar': {}}})
    check.parse_config()
    assert len(check._components) == 2
    assert 'foo' in check._components
    assert 'bar' in check._components