// Read in the JSON from the example resources
InputStream is = KrakenTradeJsonTest.class.getResourceAsStream("/trading/example-cancelorder-data.json");
// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
KrakenCancelOrderResult krakenResult = mapper.readValue(is, KrakenCancelOrderResult.class);
KrakenCancelOrderResponse cancelOrderResponse = krakenResult.getResult();
assertThat(cancelOrderResponse.getCount()).isEqualTo(1);
assertFalse(cancelOrderResponse.isPending());
}