// Read in the JSON from the example resources
InputStream is = FullDepthJSONTest.class.getResourceAsStream("/marketdata/example-full-depth-data.json");
ObjectMapper mapper = new ObjectMapper();
CampBXOrderBook orderBook = mapper.readValue(is, CampBXOrderBook.class);
// Verify that the example data was unmarshalled correctly
assertThat(orderBook.getBids().get(0).get(0)).isEqualTo(new BigDecimal("13.3"));
assertThat(orderBook.getBids().get(0).get(1)).isEqualTo(new BigDecimal("0.00021609"));
assertThat(orderBook.getAsks().get(0).get(0)).isEqualTo(new BigDecimal("99.99"));
assertThat(orderBook.getAsks().get(0).get(1)).isEqualTo(new BigDecimal("0.10000000"));
}