BittrexUtils { @Deprecated public static String toPairString(CurrencyPair currencyPair) { return currencyPair.counter.getCurrencyCode().toUpperCase() + "-" + currencyPair.base.getCurrencyCode().toUpperCase(); } private  BittrexUtils(); @Deprecated static String toPairString(CurrencyPair currencyPair); static String toPairString(CurrencyPair currencyPair, boolean apiVersion3); static CurrencyPair toCurrencyPair(String pairString, boolean apiVersion3); @Deprecated static CurrencyPair toCurrencyPair(String pairString); static Date toDate(String dateString);  }
@Test public void testToPairString() { CurrencyPair market = CurrencyPair.ETH_BTC; String oldApiVersionPairString = market.counter + MARKET_NAME_SEPARATOR + market.base; String v3ApiVersionPairString = market.base + MARKET_NAME_SEPARATOR + market.counter; Assert.assertEquals(v3ApiVersionPairString, toPairString(market, true)); Assert.assertEquals(oldApiVersionPairString, toPairString(market, false)); }