SingleKeySymbolProvider implements SymbolProvider { public String valueForSymbol(String symbolName) { if (this.symbolName.equalsIgnoreCase(symbolName)) return value; return null; } SingleKeySymbolProvider(final String symbolName, final String value); String valueForSymbol(String symbolName);  }
@Test public void exact_match() { assertEquals(provider.valueForSymbol("fred"), "flintstone"); }
@Test public void case_insensitive() { assertEquals(provider.valueForSymbol("FRED"), "flintstone"); }
@Test public void non_match() { assertNull(provider.valueForSymbol("barney")); }