// Read in the JSON from the example resources
InputStream is = BTCETradeHistoryJSONTest.class.getResourceAsStream("/v2/trade/example-trade-history-data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
BTCETradeHistoryReturn transactions = mapper.readValue(is, BTCETradeHistoryReturn.class);
Map<Long, BTCETradeHistoryResult> result = transactions.getReturnValue();
assertThat(result.size()).isEqualTo(32);
Entry<Long, BTCETradeHistoryResult> firstEntry = result.entrySet().iterator().next();
// Verify that the example data was unmarshalled correctly
assertThat(firstEntry.getKey()).isEqualTo(7258275L);