### Question:
NamedVariablePatternMatcher implements PatternMatcher<NamedVariablePatternMatcher.CompiledPattern> { public boolean isLiteral(String pattern) { return (pattern == null || pattern.indexOf('{') == -1); }  boolean isLiteral(String pattern); CompiledPattern compilePattern(String data); boolean match(Map<String, String> map, String data, CompiledPattern expr);  }### Answer:
@Test public void testIsLiteral() { NamedVariablePatternMatcher matcher = new NamedVariablePatternMatcher(); assertTrue(matcher.isLiteral("bob")); assertFalse(matcher.isLiteral("bob{jim}")); }