MLEnvironmentFactory { public static synchronized Long getNewMLEnvironmentId() { return registerMLEnvironment(new MLEnvironment()); }  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 getNewMLEnvironmentId() { Long mlEnvironmentId = MLEnvironmentFactory.getNewMLEnvironmentId(); Assert.assertNotNull(MLEnvironmentFactory.get(mlEnvironmentId)); }