// Read in the JSON from the example resources
InputStream is = StreamDepthJSONTest.class.getResourceAsStream("/marketdata/example-stream-depth-data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
BitstampStreamingOrderBook orderBook = mapper.readValue(is, BitstampStreamingOrderBook.class);
// Verify that the example data was unmarshalled correctly
assertThat(orderBook.getBids().get(0).get(0)).isEqualTo(new BigDecimal("123.09"));
assertThat(orderBook.getBids().get(0).get(1)).isEqualTo(new BigDecimal("0.16248274"));
assertThat(orderBook.getAsks().get(0).get(0)).isEqualTo(new BigDecimal("123.39"));
assertThat(orderBook.getAsks().get(0).get(1)).isEqualTo(new BigDecimal("0.60466812"));
assertThat(orderBook.getTimestamp() > 0);
}