// Read in the JSON from the example resources
InputStream is = KrakenAssetsJSONTest.class.getResourceAsStream("/marketdata/example-assets-data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
KrakenAssetsResult krakenResult = mapper.readValue(is, KrakenAssetsResult.class);
Map<String, KrakenAsset> assets = krakenResult.getResult();
assertThat(assets).hasSize(9);
KrakenAsset asset = assets.get("XXBT");
assertThat(asset.getAltName()).isEqualTo("XBT");
assertThat(asset.getAssetClass()).isEqualTo("currency");