BitmexLevel1QuoteEngine extends QuoteEngine implements IQuoteListener, ITradeListener { @Override public void startEngine() { websocketClient = BitmexClientRegistry.getInstance().getWebsocketClient(); isStarted = true; }  @Override void startEngine(); @Override void startEngine(Properties props); @Override void stopEngine(); @Override Date getServerTime(); @Override boolean started(); @Override boolean isConnected(); @Override void useDelayedData(boolean useDelayed); @Override void subscribeLevel1(Ticker ticker, Level1QuoteListener listener); @Override void quoteUpdated(BitmexQuote quoteData); @Override void tradeUpdated(BitmexTrade trade); int getMessageProcessorQueueSize();  }
@Test public void testStartEngine() { assertNull(testQuoteEngine.websocketClient); assertFalse(testQuoteEngine.isStarted); assertFalse(testQuoteEngine.started()); assertFalse(testQuoteEngine.isConnected()); testQuoteEngine.startEngine(); assertEquals(mockClient, testQuoteEngine.websocketClient); assertTrue(testQuoteEngine.isStarted); assertTrue(testQuoteEngine.started()); assertTrue(testQuoteEngine.isConnected()); }