MLEnvironmentFactory { public static synchronized MLEnvironment getDefault() { return get(DEFAULT_ML_ENVIRONMENT_ID); }  static synchronized MLEnvironment get(Long mlEnvId); static synchronized MLEnvironment getDefault(); static synchronized void setDefault(MLEnvironment env); static synchronized Long getNewMLEnvironmentId(); static synchronized Long registerMLEnvironment(MLEnvironment env); static synchronized MLEnvironment remove(Long mlEnvId); static final Long DEFAULT_ML_ENVIRONMENT_ID; }
@Test public void testGetDefault() { MLEnvironment mlEnvironment = MLEnvironmentFactory .get(MLEnvironmentFactory.DEFAULT_ML_ENVIRONMENT_ID); MLEnvironment mlEnvironmentDefault = MLEnvironmentFactory.getDefault(); Assert.assertSame(mlEnvironment, mlEnvironmentDefault); }