test
implement RuleMatch abstraction