}
public void testTemplateWithCapturingGroupsInRegex() {
JaxRsUriTemplateProcessor processor =
new JaxRsUriTemplateProcessor("/path1/{var1}/{var2:(a)(b)*}/path2/{var3}/tail");
UriTemplateMatcher matcher = processor.matcher();
boolean matches = matcher.matches("/path1/cc/abb/path2/dd/tail");
assertTrue(matches);
assertEquals("cc", matcher.getVariableValue("var1"));
assertEquals("abb", matcher.getVariableValue("var2"));
assertEquals("dd", matcher.getVariableValue("var3"));