CoinjarAdapters { public static CurrencyPair productToCurrencyPair(String product) { return new CurrencyPair( Currency.getInstance(product.substring(0, 3)), Currency.getInstance(product.substring(3, 6))); } private  CoinjarAdapters(); static String currencyPairToProduct(CurrencyPair pair); static CurrencyPair productToCurrencyPair(String product); static String orderTypeToBuySell(Order.OrderType orderType); static Order.OrderType buySellToOrderType(String buySell); static Order.OrderStatus adaptStatus(String status); static Ticker adaptTicker(CoinjarTicker ticker, CurrencyPair currencyPair); static LimitOrder adaptOrderToLimitOrder(CoinjarOrder coinjarOrder); static UserTrade adaptOrderToUserTrade(CoinjarOrder order); static OrderBook adaptOrderbook(CoinjarOrderBook orderBook, CurrencyPair currencyPair); static UserTrade adaptFillToUserTrade(CoinjarFill coinjarFill);  }
@Test public void testProductToCurrencyPair() { assertThat(CoinjarAdapters.productToCurrencyPair("BTCAUD")).isEqualTo(CurrencyPair.BTC_AUD); }