def METHOD_NAME(self):
    """Test blacklist rules."""
    rules_local_path = get_datafile_path(__file__,
                                         'enabled_apis_test_rules_1.yaml')
    rules_engine = eare.EnabledApisRulesEngine(
        rules_file_path=rules_local_path)
    rules_engine.build_rule_book()
    self.assertEqual(4, len(rules_engine.rule_book.resource_rules_map))
    # Everything is allowed.
    violations = rules_engine.find_violations(
        self.proj_1, ['foo.googleapis.com', 'baz.googleapis.com'])
    self.assertEqual(0, len(list(violations)))
    # Blacklisted APIs.
    violations = list(rules_engine.find_violations(
        self.proj_1,
        ['foo.googleapis.com', 'bar.googleapis.com', 'baz.googleapis.com']))
    self.assertEqual(1, len(violations))
    self.assertEqual(eare.VIOLATION_TYPE, violations[0].violation_type)
    self.assertEqual(('bar.googleapis.com',), violations[0].apis)