// Read in the JSON from the example resources
InputStream is = BTERAdapterTest.class.getResourceAsStream("/marketdata/example-tickers-data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
BTERTickers tickers = mapper.readValue(is, BTERTickers.class);
Map<CurrencyPair, BTERTicker> tickerMap = tickers.getTickerMap();
Ticker ticker = BTERAdapters.adaptTicker(CurrencyPair.BTC_CNY, tickerMap.get(CurrencyPair.BTC_CNY));
assertThat(ticker.getLast()).isEqualTo("3400.01");
assertThat(ticker.getHigh()).isEqualTo("3497.41");
assertThat(ticker.getLow()).isEqualTo("3400.01");