// 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);
}