BTCMarketsMarketDataService extends BTCMarketsMarketDataServiceRaw implements MarketDataService { @Override public Ticker getTicker(CurrencyPair currencyPair, Object... args) throws IOException { BTCMarketsTicker t = getBTCMarketsTicker(currencyPair); return BTCMarketsAdapters.adaptTicker(currencyPair, t); } BTCMarketsMarketDataService(Exchange exchange); @Override Ticker getTicker(CurrencyPair currencyPair, Object... args); @Override OrderBook getOrderBook(CurrencyPair currencyPair, Object... args);  }
@Test public void shouldGetTicker() throws IOException { PowerMockito.when(btcmarkets.getTicker("BTC", "AUD")).thenReturn(EXPECTED_BTC_MARKETS_TICKER); Ticker ticker = marketDataService.getTicker(CurrencyPair.BTC_AUD); BtcMarketsAssert.assertEquals(ticker, EXPECTED_TICKER); }