### Question:
URITemplate { public String getValue() { return template; } URITemplate(String theTemplate); String getLiteralChars(); String getValue(); String getPatternValue(); List<String> getVariables(); List<String> getCustomVariables(); boolean match(String uri, MultivaluedMap<String, String> templateVariableToValue); String substitute(List<String> values); String substitute(Map<String, ? extends Object> valuesMap,
                             Set<String> encodePathSlashVars,
                             boolean allowUnresolved); String encodeLiteralCharacters(boolean isQuery); static URITemplate createTemplate(Path path); static URITemplate createTemplate(String pathValue); static URITemplate createExactTemplate(String pathValue); static int compareTemplates(URITemplate t1, URITemplate t2); static final String TEMPLATE_PARAMETERS; static final String LIMITED_REGEX_SUFFIX; static final String FINAL_MATCH_GROUP; }### Answer:
@Test public void testUnclosedVariable() { URITemplate ut = new URITemplate("/foo/{var/bar"); assertEquals("/foo/{var/bar", ut.getValue()); }
@Test public void testUnopenedVariable() { URITemplate ut = new URITemplate("/foo/var}/bar"); assertEquals("/foo/var}/bar", ut.getValue()); }