// Read in the JSON from the example resources
InputStream is = VirtExTradesJSONTest.class.getResourceAsStream("/marketdata/example-trades-data-v2.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
VirtExTradesWrapper virtExTradesWrapper = mapper.readValue(is, VirtExTradesWrapper.class);
ArrayList<VirtExTrade> virtexTrades = virtExTradesWrapper.getTrades();
// Verify that the example data was unmarshalled correctly
assertThat(virtexTrades.get(0).getPrice()).isEqualTo(new BigDecimal("545.060000000"));
}