// Read in the JSON from the example resources
InputStream is = CoinbaseAdapterTest.class.getResourceAsStream("/trade/example-transfers-data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
CoinbaseTransfers transfers = mapper.readValue(is, CoinbaseTransfers.class);
UserTrades trades = CoinbaseAdapters.adaptTrades(transfers);
List<UserTrade> tradeList = trades.getUserTrades();
assertThat(tradeList.size()).isEqualTo(1);