BitmexHistoricalDataProvider implements IHistoricalDataProvider { @Override public void connect() { client = BitmexClientRegistry.getInstance().getBitmexClient(); connected = true; }  @Override boolean isConnected(); @Override void connect(); @Override void init(Properties props); @Override List<BarData> requestHistoricalData(Ticker ticker, int duration, BarData.LengthUnit durationLengthUnit, int barSize, BarData.LengthUnit barSizeUnit, ShowProperty whatToShow, boolean useRTH); @Override List<BarData> requestHistoricalData(Ticker ticker, Date endDateTime, int duration, BarData.LengthUnit durationLengthUnit, int barSize, BarData.LengthUnit barSizeUnit, ShowProperty whatToShow, boolean useRTH);  }
@Test public void testConnect() { testProvider.connect(); assertNotNull(testProvider.client); assertTrue(testProvider.isConnected()); }