// Read in the JSON from the example resources
InputStream is = KrakenAccountJSONTest.class.getResourceAsStream("/account/example-tradebalanceinfo-data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
KrakenTradeBalanceInfoResult krakenResult = mapper.readValue(is, KrakenTradeBalanceInfoResult.class);
KrakenTradeBalanceInfo tradeBalanceInfo = krakenResult.getResult();
assertThat(tradeBalanceInfo.getTradeBalance()).isEqualTo("71.6310");
assertThat(tradeBalanceInfo.getMargin()).isEqualTo("0.0000");
assertThat(tradeBalanceInfo.getFreeMargin()).isEqualTo("71.6310");
assertThat(tradeBalanceInfo.getCostBasis()).isEqualTo("0.0000");