StyxClientFactory { public static StyxClient create(String apiHost) { return StyxOkHttpClient.create(apiHost); } private  StyxClientFactory(); static StyxClient create(String apiHost); static StyxClient create(String apiHost, GoogleCredentials credentials); static StyxClient create(String apiHost, OkHttpClient okHttpClient); static StyxClient create(String apiHost, OkHttpClient okHttpClient, GoogleCredentials credentials); static OkHttpClient defaultOkHttpClient(); static StyxStatusClient createStatusClient(String apiHost); static StyxBackfillClient createBackfillClient(String apiHost); static StyxSchedulerClient createSchedulerClient(String apiHost); static StyxResourceClient createResourceClient(String apiHost); static StyxWorkflowClient createWorkflowClient(String apiHost);  }
@Test public void createWithHost() { var client = StyxClientFactory.create(API_HOST); assertThat(client, notNullValue()); }
@Test public void testCreateWithHostAndCredentials() { var client = StyxClientFactory.create(API_HOST, googleCredentials); assertThat(client, notNullValue()); }