MappingRule { @Override public String toString() { return "MappingRule{" + "matcher=" + matcher + ", action=" + action + '}'; } MappingRule(MappingRuleMatcher matcher, MappingRuleAction action); MappingRuleResult evaluate(VariableContext variables); MappingRuleResult getFallback(); static MappingRule createLegacyRule(String source, String path); static MappingRule createLegacyRule(
      String type, String source, String path); void validate(MappingRuleValidationContext ctx); @Override String toString(); static final String USER_MAPPING; static final String GROUP_MAPPING; static final String APPLICATION_MAPPING; }
@Test public void testToStrings() { MappingRuleAction action = new MappingRuleActions.PlaceToQueueAction( "queue", true); MappingRuleMatcher matcher = MappingRuleMatchers.createUserMatcher("bob"); MappingRule rule = new MappingRule(matcher, action); assertEquals("MappingRule{matcher=" + matcher.toString() + ", action=" + action.toString() + "}", rule.toString()); }