BleutradeUtils { public static CurrencyPair toCurrencyPair(String pairString) { String[] currencies = pairString.split("_"); return new CurrencyPair(currencies[0], currencies[1]); }  static String toPairString(CurrencyPair currencyPair); static CurrencyPair toCurrencyPair(String pairString); static Date toDate(String timeStamp);  }
@Test public void shouldConvertStringToCurrencyPair() { assertThat(BleutradeUtils.toCurrencyPair("BTC_AUD")).isEqualTo(CurrencyPair.BTC_AUD); assertThat(BleutradeUtils.toCurrencyPair("BLEU_AUD")) .isEqualTo(new CurrencyPair("BLEU", "AUD")); }