LgoAdapters { public static LgoUnencryptedOrder adaptUnencryptedLimitOrder(LimitOrder limitOrder) { String product = adaptCurrencyPair(limitOrder.getCurrencyPair()); String side = adaptOrderType(limitOrder.getType()); return new LgoUnencryptedOrder( "L", side, product, limitOrder.getOriginalAmount().toString(), limitOrder.getLimitPrice().toString(), limitOrder.getTimestamp().getTime()); } private  LgoAdapters(); static ExchangeMetaData adaptMetadata(
      ExchangeMetaData metaData, LgoProducts products, LgoCurrencies currencies); static Stream<LgoKey> adaptKeysIndex(String indexFile); static LgoPlaceOrder adaptLimitOrder(LimitOrder limitOrder); static LgoPlaceOrder adaptEncryptedMarketOrder(MarketOrder marketOrder); static LgoPlaceOrder adaptEncryptedCancelOrder(String orderId, Date date); static LgoUnencryptedOrder adaptUnencryptedLimitOrder(LimitOrder limitOrder); static LgoUnencryptedOrder adaptUnencryptedMarketOrder(MarketOrder marketOrder); static String adaptCurrencyPair(CurrencyPair currencyPair); static UserTrades adaptUserTrades(WithCursor<LgoUserTrades> lastTrades); static OrderBook adaptOrderBook(LgoOrderbook ob, CurrencyPair pair); static LimitOrder adaptEntryToLimitOrder(
      Object[] entry, OrderType bid, CurrencyPair pair); static String adaptDateParam(Date date);  }
@Test public void adaptsUnencryptedOrder() { Date timestamp = new Date(); LimitOrder limitOrder = new LimitOrder( OrderType.ASK, new BigDecimal("1"), CurrencyPair.BTC_USD, null, timestamp, new BigDecimal("6000")); LgoUnencryptedOrder lgoUnencryptedOrder = LgoAdapters.adaptUnencryptedLimitOrder(limitOrder); assertThat(lgoUnencryptedOrder.price).isEqualTo("6000"); assertThat(lgoUnencryptedOrder.quantity).isEqualTo("1"); assertThat(lgoUnencryptedOrder.productId).isEqualTo("BTC-USD"); assertThat(lgoUnencryptedOrder.side).isEqualTo("S"); assertThat(lgoUnencryptedOrder.timestamp).isEqualTo(timestamp.getTime()); assertThat(lgoUnencryptedOrder.type).isEqualTo("L"); }