BitmexClientRegistry { public void setProperties( BitmexProperties properties ) { useProduction = properties.isUseProduction(); apiKeyName = properties.getApiKeyName(); apiKeyValue = properties.getApiKeyValue(); } protected  BitmexClientRegistry(); static BitmexClientRegistry getInstance(); static void setTestClientRegistry( BitmexClientRegistry testRegistry ); void setProperties( BitmexProperties properties ); IBitmexClient getBitmexClient(); BitmexRestClient getRestClient(); BitmexWebsocketClient getWebsocketClient();  }
@Test public void testSetProperties() { String apiKeyName = "myApiKeyName"; String apiKeyValue = "myApiKeyValue"; BitmexProperties properties = new BitmexProperties(); properties.readProperties(getClass().getResourceAsStream("/testprops.properties")); registry.setProperties(properties); assertTrue(registry.useProduction); assertEquals(apiKeyName, registry.apiKeyName); assertEquals(apiKeyValue, registry.apiKeyValue); }