Map<Integer, CryptsyPublicOrderbook> cryptsyOrderBookMap = CryptsyAdapters.adaptPublicOrderBookMap(mapper.readValue(is, CryptsyPublicOrderbookReturn.class).getReturnValue());
List<OrderBook> adaptedOrderBookList = CryptsyAdapters.adaptPublicOrderBooks(cryptsyOrderBookMap);
assertThat(adaptedOrderBookList).hasSize(1);
OrderBook adaptedOrderBook = adaptedOrderBookList.get(0);
assertEquals(adaptedOrderBook.getAsks().size(), 3);
assertEquals(adaptedOrderBook.getBids().size(), 3);
assertNotNull(adaptedOrderBook.getTimeStamp());
LimitOrder asks = adaptedOrderBook.getAsks().get(0);
assertThat(asks.getCurrencyPair()).isEqualTo(CurrencyPair.DOGE_LTC);
assertThat(asks.getId()).isNull();
assertThat(asks.getLimitPrice()).isEqualTo("0.00003495");
assertThat(asks.getTradableAmount()).isEqualTo("334369.75217020");
assertThat(asks.getType()).isEqualTo(OrderType.ASK);