// Read in the JSON from the example resources
InputStream is = KrakenAccountJSONTest.class.getResourceAsStream("/account/example-tradevolume-data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
KrakenTradeVolumeResult krakenResult = mapper.readValue(is, KrakenTradeVolumeResult.class);
KrakenTradeVolume tradeVolume = krakenResult.getResult();
assertThat(tradeVolume.getCurrency()).isEqualTo("ZUSD");
assertThat(tradeVolume.getVolume()).isEqualTo("451.3040");
Map<String, KrakenVolumeFee> fees = tradeVolume.getFees();
KrakenVolumeFee fee = fees.get("XXBTZUSD");