// Read in the JSON from the example resources
InputStream is = CryptoTradeAdapterTest.class.getResourceAsStream("/account/example-account-info-data.json");
// 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");