// Read in the JSON from the example resources
InputStream is = KrakenAdaptersTest.class.getResourceAsStream("/account/example-balance-data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
KrakenBalanceResult krakenBalance = mapper.readValue(is, KrakenBalanceResult.class);
AccountInfo info = KrakenAdapters.adaptBalance(krakenBalance.getResult(), null);
assertThat(info.getBalance(Currencies.EUR)).isEqualTo(new BigDecimal("1.0539"));
assertThat(info.getBalance(Currencies.BTC)).isEqualTo(new BigDecimal("0.4888583300"));
}