// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
KrakenOpenOrdersResult krakenResult = mapper.readValue(is, KrakenOpenOrdersResult.class);
OpenOrders orders = KrakenAdapters.adaptOpenOrders(krakenResult.getResult().getOrders());
// Verify that the example data was unmarshalled correctly
assertThat(orders.getOpenOrders()).hasSize(1);
assertThat(orders.getOpenOrders().get(0).getId()).isEqualTo("OR6QMM-BCKM4-Q6YHIN");
assertThat(orders.getOpenOrders().get(0).getLimitPrice()).isEqualTo("500.00000");
assertThat(orders.getOpenOrders().get(0).getTradableAmount()).isEqualTo("1.00000000");
assertThat(orders.getOpenOrders().get(0).getCurrencyPair().baseSymbol).isEqualTo(Currencies.BTC);
assertThat(orders.getOpenOrders().get(0).getCurrencyPair().counterSymbol).isEqualTo(Currencies.EUR);
assertThat(orders.getOpenOrders().get(0).getType()).isEqualTo(OrderType.BID);
}