def METHOD_NAME(self, sonarqube_check):
    check = sonarqube_check({'components': {'foo': {'exclude': 'foo'}}})
    with pytest.raises(ConfigurationError, match='The `exclude` setting must be an array'):
        check.parse_config()