// 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);
LimitOrder order = adaptedOpenOrders.getOpenOrders().get(0);
assertEquals(order.getId(), "90039904");
assertEquals(order.getLimitPrice(), new BigDecimal("0.00000001"));
assertEquals(order.getTradableAmount(), new BigDecimal("50000.10000000"));
assertEquals(order.getCurrencyPair().baseSymbol, "WDC");
assertEquals(order.getCurrencyPair().counterSymbol, "BTC");
assertEquals(order.getType(), OrderType.BID);
LimitOrder order2 = adaptedOpenOrders.getOpenOrders().get(8);
assertEquals(order2.getId(), "90041288");
assertEquals(order2.getLimitPrice(), new BigDecimal("0.00000009"));
assertEquals(order2.getTradableAmount(), new BigDecimal("50001.00000000"));
assertEquals(order2.getCurrencyPair().baseSymbol, "LTC");
assertEquals(order2.getCurrencyPair().counterSymbol, "BTC");