def METHOD_NAME(self, sonarqube_check):
    check = sonarqube_check({'components': {'foo': {'include': ['foo.']}}, 'default_exclude': ['foo.bar']})
    check.parse_config()
    _, selector = check._components['foo']
    assert not selector('foo.bar')
    assert selector('foo.baz')