public void testAdaptAccountInfo() throws IOException {
Wallet wallet = new Wallet("BTC", new BigDecimal("7.10770000"));
List<Wallet> wallets = new ArrayList<Wallet>();
wallets.add(wallet);
AccountInfo expectedAccountInfo = new AccountInfo("demo@demo.com", wallets);
// Read in the JSON from the example resources
InputStream is = CoinbaseAdapterTest.class.getResourceAsStream("/account/example-users-data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
CoinbaseUsers users = mapper.readValue(is, CoinbaseUsers.class);
List<CoinbaseUser> userList = users.getUsers();
CoinbaseUser user = userList.get(0);
AccountInfo accountInfo = CoinbaseAdapters.adaptAccountInfo(user);
assertThat(accountInfo).isEqualsToByComparingFields(expectedAccountInfo);
}