// Use Jackson to parse it
ObjectMapper mapper = new ObjectMapper();
KrakenOpenOrdersResult krakenResult = mapper.readValue(is, KrakenOpenOrdersResult.class);
Entry<String, KrakenOrder> openOrderEntry = krakenResult.getResult().getOrders().entrySet().iterator().next();
KrakenOrder order = openOrderEntry.getValue();
// Verify that the example data was unmarshalled correctly
assertThat(openOrderEntry.getKey()).isEqualTo("OR6QMM-BCKM4-Q6YHIN");
assertThat(order.getOpenTimestamp()).isEqualTo(1380586080.222);
assertThat(order.getPrice()).isEqualTo("0.00000");
assertThat(order.getVolume()).isEqualTo("0.01000000");
assertThat(order.getVolumeExecuted()).isEqualTo("0.00000000");
assertThat(order.getStatus()).isEqualTo(KrakenOrderStatus.OPEN);
KrakenOrderDescription orderDescription = order.getOrderDescription();
assertThat(orderDescription.getAssetPair()).isEqualTo("LTCEUR");
assertThat(orderDescription.getLeverage()).isEqualTo("none");
assertThat(orderDescription.getOrderDescription()).isEqualTo("buy 0.01000000 LTCEUR @ limit 13.00000");
assertThat(orderDescription.getOrderType()).isEqualTo(KrakenOrderType.LIMIT);
assertThat(orderDescription.getType()).isEqualTo(KrakenType.BUY);