BTCMarketsTradeService extends BTCMarketsTradeServiceRaw implements TradeService { @Override public HistoryParams createTradeHistoryParams() { return new HistoryParams(); } BTCMarketsTradeService(Exchange exchange); @Override String placeMarketOrder(MarketOrder order); @Override String placeLimitOrder(LimitOrder order); @Override OpenOrders getOpenOrders(); @Override OpenOrders getOpenOrders(OpenOrdersParams params); @Override boolean cancelOrder(String orderId); @Override boolean cancelOrder(CancelOrderParams orderParams); @Override UserTrades getTradeHistory(TradeHistoryParams params); @Override Collection<Order> getOrder(OrderQueryParams... orderQueryParams); @Override HistoryParams createTradeHistoryParams(); @Override OpenOrdersParams createOpenOrdersParams();  }
@Test public void shouldCreateHistoryParams() { BTCMarketsTradeService.HistoryParams historyParams = marketsTradeService.createTradeHistoryParams(); assertThat(historyParams.getPageLength()).isEqualTo(200); }