// Read in the JSON from the example resources
InputStream is = BTERAdapterTest.class.getResourceAsStream("/marketdata/example-depth-data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
BTERDepth depth = mapper.readValue(is, BTERDepth.class);
OrderBook orderBook = BTERAdapters.adaptOrderBook(depth, CurrencyPair.LTC_BTC);
List<LimitOrder> asks = orderBook.getAsks();
assertThat(asks).hasSize(3);