def METHOD_NAME(self) -> None:
    mock_config(self.config_contents)
    mirror = BandersnatchMirror(Path("."), Master(url="https://foo.bar.com"))
    pkg = Package("foo", 1)
    pkg._metadata = {
        "info": {"name": "foo", "version": "2.0.0"},  # stable version
        "releases": {
            "1.0.0": {},
            "1.1.0": {},
            "1.1.1": {},
            "1.1.2": {},
            "1.1.3": {},
            "2.0.0": {},  # <= stable version, keep it
            "2.0.1b1": {},
            "2.0.1b2": {},  # <= most recent, keep it
        },
    }
    pkg.filter_all_releases(mirror.filters.filter_release_plugins())
    assert pkg.releases == {"2.0.1b2": {}, "2.0.0": {}}