// Read in the JSON from the example resources
InputStream is = MarketDataTest.class.getResourceAsStream("/Example_DepthData.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
BTCCentralMarketDepth btcCentralMarketDepth = mapper.readValue(is, BTCCentralMarketDepth.class);
assertEquals(btcCentralMarketDepth.getAsks().get(0).getAmount(), new BigDecimal("0.48762"));
assertEquals(btcCentralMarketDepth.getAsks().get(0).getPrice(), new BigDecimal("24.48996"));
assertEquals(btcCentralMarketDepth.getBids().get(0).getAmount(), new BigDecimal("0.77372456"));
assertEquals(btcCentralMarketDepth.getBids().get(0).getPrice(), new BigDecimal("24.05"));
}