// Read in the JSON from the example resources
InputStream is = CryptoTradeAdapterTest.class.getResourceAsStream("/marketdata/example-ticker-data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
CryptoTradeTicker cryptoTradeTicker = mapper.readValue(is, CryptoTradeTicker.class);
Ticker adaptedTicker = CryptoTradeAdapters.adaptTicker(CurrencyPair.BTC_USD, cryptoTradeTicker);
assertThat(adaptedTicker.getLast()).isEqualTo(new BigDecimal("128"));
assertThat(adaptedTicker.getLow()).isEqualTo(new BigDecimal("127.9999"));