### Question:
SyncSessionClientImpl implements SyncSessionClient { RevokeTokenRequest revokeTokenRequest(String token, ProviderConfiguration providerConfiguration) throws AuthorizationException { return HttpRequestBuilder.newRevokeTokenRequest() .tokenToRevoke(token) .providerConfiguration(providerConfiguration) .config(mOidcConfig) .createRequest(); } SyncSessionClientImpl(OIDCConfig oidcConfig, OktaState oktaState,
                          OktaHttpClient httpClient); JSONObject authorizedRequest(@NonNull Uri uri,
                                        @Nullable Map<String, String> properties,
                                        @Nullable Map<String, String> postParameters,
                                        @NonNull ConnectionParameters.RequestMethod method); @Override UserInfo getUserProfile(); @Override IntrospectInfo introspectToken(String token, String tokenType); @Override Boolean revokeToken(String token); @Override Tokens refreshToken(); @Override Tokens getTokens(); @Override boolean isAuthenticated(); @Override void clear(); @Override void cancel(); @Override void migrateTo(EncryptionManager manager);  }### Answer:
@Test public void revokeTokenRequest() throws AuthorizationException, InterruptedException, OktaRepository.EncryptionException { mEndPoint.enqueueReturnSuccessEmptyBody(); RevokeTokenRequest request = mSyncSessionClientImpl.revokeTokenRequest("access_token", mOktaState.getProviderConfiguration()); boolean status = request.executeRequest(mHttpClient); RecordedRequest recordedRequest = mEndPoint.takeRequest(); assertThat(recordedRequest.getPath(), equalTo("/revoke?client_id=CLIENT_ID&token=access_token")); assertTrue(status); }
@Test public void revokeTokenRequestFailure() throws AuthorizationException, InterruptedException, AuthorizationException, OktaRepository.EncryptionException { mExpectedEx.expect(AuthorizationException.class); mEndPoint.enqueueReturnInvalidClient(); RevokeTokenRequest request = mSyncSessionClientImpl.revokeTokenRequest("access_token", mOktaState.getProviderConfiguration()); boolean status = request.executeRequest(mHttpClient); RecordedRequest recordedRequest = mEndPoint.takeRequest(); assertFalse(status); assertThat(recordedRequest.getPath(), equalTo("/revoke?client_id=CLIENT_ID&token=access_token")); }