CBOTLocalSymbolBuilder implements ILocalSymbolBuilder { @Override public String buildLocalSymbol(String symbol, int expirationMonth, int expirationYear) { StringBuilder sb = new StringBuilder(); sb.append(symbol) .append(" ") .append(FuturesUtil.getMonthAbbreviation(expirationMonth)) .append(" ") .append(FuturesUtil.getTwoDigitYearString(expirationYear)); return sb.toString(); }  @Override String buildLocalSymbol(String symbol, int expirationMonth, int expirationYear);  }
@Test public void testBuildLocalSymbol() { CBOTLocalSymbolBuilder builder = new CBOTLocalSymbolBuilder(); assertEquals( "ZW MAR 17", builder.buildLocalSymbol("ZW", 3, 2017)); }