assertEquals("instantiate template7", "food()", template7.expand(hashMap));
}
public void testUnreservedMatch() {
UriTemplateProcessor template = new BitWorkingUriTemplateProcessor("/prefix/{varA}");
UriTemplateMatcher matcher = template.matcher();
MultivaluedMap<String, String> result = matcher.match("/prefix/a.b");
assertNotNull("match ok .", result);
assertEquals("match size .", 1, result.size());
assertEquals("varA", "a.b", result.getFirst("varA"));
result = matcher.match("/prefix/a_b");
assertNotNull("match ok _", result);
assertEquals("match size _", 1, result.size());
assertEquals("varA", "a_b", result.getFirst("varA"));
result = matcher.match("/prefix/a-b");
assertNotNull("match ok -", result);
assertEquals("match size ,", 1, result.size());
assertEquals("varA", "a-b", result.getFirst("varA"));
result = matcher.match("/prefix/a~b");
assertNotNull("match ok ~", result);
assertEquals("match size ~", 1, result.size());
assertEquals("varA", "a~b", result.getFirst("varA"));
}