// Read in the JSON from the example resources
InputStream is = KrakenDepthJSONTest.class.getResourceAsStream("/marketdata/example-depth-data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
KrakenDepthResult krakenDepthResult = mapper.readValue(is, KrakenDepthResult.class);
Map<String, KrakenDepth> krakenDepths = krakenDepthResult.getResult();
// Verify that the example data was unmarshalled correctly
assertThat(krakenDepths.get("XXBTXLTC")).isEqualTo(null);
List<KrakenPublicOrder> krakenAsks = krakenDepths.get("XXBTZEUR").getAsks();
KrakenPublicOrder krakenPublicOrder = krakenAsks.get(0);