def METHOD_NAME(func):
    if Specs.package_provides_command in filters._CACHE:
        del filters._CACHE[Specs.package_provides_command]
    if Specs.package_provides_command in filters.FILTERS:
        del filters.FILTERS[Specs.package_provides_command]
    if func is test_cmd_and_pkg:
        filters.add_filter(Specs.package_provides_command, ['httpd', 'java'])
    elif func is test_cmd_and_pkg_not_found:
        filters.add_filter(Specs.package_provides_command, ['not_found'])