// 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");
assertThat(ledger.getFee()).isEqualTo("0.0000000000");
assertThat(ledger.getTransactionAmount()).isEqualTo("0.1000000000");
assertThat(ledger.getLedgerType()).isEqualTo(LedgerType.DEPOSIT);
assertThat(ledger.getRefId()).isEqualTo("QGBJIZV-4F6SPK-ZCBT5O");
assertThat(ledger.getUnixTime()).isEqualTo(1391400160.0679);
}