assertEquals(3, matches.size());
}
@Test
public void regexpMatchingAttributeWithSlash() throws Exception {
MatchNode matchNode = new MatchNode();
PrivateAccessor.setField(matchNode, "regexp", "([a-zA-Z\\-]+)/(.*)");
MatcherContext matcherContext = matchNode.lookupMatcherContext();
Map<String, String> matches = matcherContext.match("abc/44");
assertTrue(matches.containsValue("abc/44"));
assertTrue(matches.containsValue("abc"));
assertTrue(matches.containsValue("44"));
assertEquals(3, matches.size());