// Read in the JSON from the example resources
InputStream is = VirtExDepthJSONTest.class.getResourceAsStream("/marketdata/example-depth-data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
VirtExDepth VirtExDepth = mapper.readValue(is, VirtExDepth.class);
List<LimitOrder> asks = VirtExAdapters.adaptOrders(VirtExDepth.getAsks(), "CAD", "ask", "");
// Verify all fields filled
assertThat(asks.get(0).getLimitPrice().doubleValue()).isEqualTo(16.90536);
assertThat(asks.get(0).getType()).isEqualTo(OrderType.ASK);
assertThat(asks.get(0).getTradableAmount().doubleValue()).isEqualTo(6.51);