XingApi { public HttpUrl apiEndpoint() { return apiEndpoint; } XingApi(OkHttpClient client, HttpUrl apiEndpoint, Converter converter, CallbackAdapter callbackAdapter,
          Executor callbackExecutor); HttpUrl apiEndpoint(); Moshi moshi(); Executor callbackExecutor(); OkHttpClient client(); XingApi addAuthErrorCallback(AuthErrorCallback errorCallback); XingApi removeAuthErrorCallback(AuthErrorCallback errorCallback);  }
@Test public void apiEndpointDefault() throws Exception { XingApi api = buildDefaultApi(); assertThat(api.apiEndpoint().toString()).isEqualTo("https: }
@Test public void apiEndpointPropagated() throws Exception { XingApi api1 = new XingApi.Builder() .custom() .apiEndpoint(HttpUrl.parse("http: .build(); assertThat(api1.apiEndpoint().toString()).isEqualTo("http: XingApi api2 = new XingApi.Builder() .custom() .apiEndpoint("https: .build(); assertThat(api2.apiEndpoint().toString()).isEqualTo("https: }