// Read in the JSON from the example resources
InputStream is = BitcurexDepthJSONTest.class.getResourceAsStream("/marketdata/example-depth-data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
BitcurexDepth BitcurexDepth = mapper.readValue(is, BitcurexDepth.class);
List<LimitOrder> asks = BitcurexAdapters.adaptOrders(BitcurexDepth.getAsks(), CurrencyPair.BTC_EUR, OrderType.ASK, "");
// Verify all fields filled
assertThat(asks.get(0).getLimitPrice().doubleValue()).isEqualTo(70.00000000);
assertThat(asks.get(0).getType()).isEqualTo(OrderType.ASK);
assertThat(asks.get(0).getTradableAmount().doubleValue()).isEqualTo(0.1021341);