TradeOgreAdapters { public static CurrencyPair adaptTradeOgreCurrencyPair(String currencyPair) { String[] split = currencyPair.split("-"); return new CurrencyPair(split[1], split[0]); }  static String adaptCurrencyPair(CurrencyPair currencyPair); static CurrencyPair adaptTradeOgreCurrencyPair(String currencyPair); static Balance adaptTradeOgreBalance(String currency, TradeOgreBalance tradeOgreBalance); static Ticker adaptTicker(CurrencyPair currencyPair, TradeOgreTicker tradeOgreTicker);  }
@Test public void adaptTradeOgreCurrencyPair() { String market = "BTC-ETH"; Assert.assertEquals(CurrencyPair.ETH_BTC, TradeOgreAdapters.adaptTradeOgreCurrencyPair(market)); }