FuturesUtil { public static String getFullFuturesSymbolWithOneDigitYear( String ticker, int month, int year ) { StringBuilder sb = new StringBuilder(); sb.append(ticker) .append(getContractMonthSymbol(month)) .append(getOneDigitYearString(year)); return sb.toString(); }  static String getFullFuturesSymbolWithTwoDigitYear( String ticker, int month, int year ); static String getFullFuturesSymbolWithOneDigitYear( String ticker, int month, int year ); static String getTwoDigitYearString(int year); static String getOneDigitYearString(int year); static String getContractMonthSymbol(int month); static String getMonthAbbreviation(int month);  }
@Test public void testGetFullFuturesSymbolWithOneDigitYear() { assertEquals("HGM5", FuturesUtil.getFullFuturesSymbolWithOneDigitYear("HG", 6, 2015)); }