// Read in the JSON from the example resources
final InputStream is = JustcoinDepthTest.class.getResourceAsStream("/marketdata/example-depth-data.json");
// Use Jackson to parse it
final ObjectMapper mapper = new ObjectMapper();
final JustcoinDepth orderBook = mapper.readValue(is, JustcoinDepth.class);
// Verify that the example data was unmarshalled correctly
assertThat(orderBook.getBids().get(0)).isEqualTo(justcoinDepth.getBids().get(0));
assertThat(orderBook.getAsks().get(0)).isEqualTo(justcoinDepth.getAsks().get(0));
assertThat(orderBook.getBids().size()).isEqualTo(43);
assertThat(orderBook.getAsks().size()).isEqualTo(41);
}