// Read in the JSON from the example resources
InputStream is = KrakenAccountJSONTest.class.getResourceAsStream("/account/example-ledgerinfo-data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
KrakenLedgerResult krakenResult = mapper.readValue(is, KrakenLedgerResult.class);
Map<String, KrakenLedger> ledgerInfo = krakenResult.getResult().getLedgerMap();
KrakenLedger ledger = ledgerInfo.get("LQY6IE-WNT47-JRBOJV");
assertThat(ledger.getAsset()).isEqualTo("XXBT");
assertThat(ledger.getAssetClass()).isEqualTo("currency");
assertThat(ledger.getBalance()).isEqualTo("0.1000000000");