// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
CryptoTradeAccountInfo accountInfo = mapper.readValue(is, CryptoTradeAccountInfo.class);
AccountInfo adaptedAccountInfo = CryptoTradeAdapters.adaptAccountInfo("test", accountInfo);
assertThat(adaptedAccountInfo.getUsername()).isEqualTo("test");
List<Wallet> wallets = adaptedAccountInfo.getWallets();
assertThat(wallets.size()).isEqualTo(11);
for (Wallet wallet : wallets) {
if (wallet.getCurrency().equals(Currencies.BTC))
assertThat(wallet.getBalance()).isEqualTo(new BigDecimal("12098.91081965"));
}