def METHOD_NAME(load_config_sample):
    """Test failure when no downgrade path is available."""
    config_initial = load_config_sample('reference/5.json')
    # target higher than initial
    with pytest.raises(ConfigurationError):
        downgrade_config(copy.deepcopy(config_initial), 6)
    # no migration available
    with pytest.raises(ConfigurationError):
        downgrade_config(copy.deepcopy(config_initial), -1)
    # circular dependency
    with pytest.raises(ConfigurationError):
        downgrade_config(config_initial, 4, migrations=[CircularMigration])