// Read in the JSON from the example resources
InputStream is = CryptonitAdapterTest.class.getResourceAsStream("/marketdata/example-depth-data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
CryptonitOrders cryptonitTrades = mapper.readValue(is, CryptonitOrders.class);
List<LimitOrder> asks = CryptonitAdapters.adaptOrders(cryptonitTrades, CurrencyPair.BTC_USD, "ask", "");
// Verify all fields filled
assertEquals(new BigDecimal("604.449"), asks.get(0).getLimitPrice().stripTrailingZeros());