XingApi { public Executor callbackExecutor() { return callbackExecutor; } 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 callbackExecutorNoDefault() throws Exception { XingApi api = buildDefaultApi(); assertThat(api.callbackExecutor()).isNull(); }
@Test public void callbackExecutorPropagated() throws Exception { Executor executor = mock(Executor.class); XingApi api = new XingApi.Builder() .custom() .callbackExecutor(executor) .build(); assertThat(api.callbackExecutor()).isSameAs(executor); }