### Question:
RevokeTokenRequest extends BaseRequest<Boolean, AuthorizationException> { @Override public Boolean executeRequest(OktaHttpClient client) throws AuthorizationException { AuthorizationException exception = null; HttpResponse response = null; try { response = openConnection(client); if (response.getStatusCode() == HttpURLConnection.HTTP_UNAUTHORIZED) { exception = AuthorizationException.TokenRequestErrors.INVALID_CLIENT; } else if (response.getStatusCode() == HttpURLConnection.HTTP_OK) { return true; } } catch (IOException ex) { exception = new AuthorizationException(ex.getMessage(), ex); } catch (Exception e) { exception = AuthorizationException.fromTemplate(AuthorizationException .GeneralErrors.NETWORK_ERROR, e); } finally { if (response != null) { response.disconnect(); } if (exception != null) { throw exception; } } return false; } RevokeTokenRequest(HttpRequestBuilder.RevokeToken b); @Override Boolean executeRequest(OktaHttpClient client);  }### Answer:
@Test public void executeRequestSuccess() throws AuthorizationException { mEndPoint.enqueueReturnSuccessEmptyBody(); boolean result = mRequest.executeRequest(mHttpClient); assertTrue(result); }
@Test public void executeRequestFailure() throws AuthorizationException { mExpectedEx.expect(AuthorizationException.class); mEndPoint.enqueueReturnUnauthorizedRevoked(); mRequest.executeRequest(mHttpClient); }