// Read in the JSON from the example resources
InputStream is = CryptsyAdapterTest.class.getResourceAsStream("/trade/Sample_AllMyOrders_Data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
CryptsyOpenOrdersReturn cryptsyOpenOrders = mapper.readValue(is, CryptsyOpenOrdersReturn.class);
OpenOrders adaptedOpenOrders = CryptsyAdapters.adaptOpenOrders(cryptsyOpenOrders);
assertEquals(adaptedOpenOrders.getOpenOrders().size(), 9);