### Question:
HttpRequestBuilder { public static Profile newProfileRequest() { return new Profile().requestType(PROFILE); }  static Authorized newAuthorizedRequest(); static Configuration newConfigurationRequest(); static TokenExchange newTokenRequest(); static RevokeToken newRevokeTokenRequest(); static Profile newProfileRequest(); static RefreshToken newRefreshTokenRequest(); static Introspect newIntrospectRequest();  }### Answer:
@Test public void createInvalidProfileRequest() throws AuthorizationException { mExpectedEx.expect(AuthorizationException.class); mExpectedEx.expectMessage("Not logged in"); HttpRequestBuilder.newProfileRequest() .providerConfiguration(mConfiguration) .config(mConfig) .createRequest(); }
@Test public void createProfileRequest() throws AuthorizationException { AuthorizedRequest request = HttpRequestBuilder.newProfileRequest() .providerConfiguration(mConfiguration) .tokenResponse(mTokenResponse) .config(mConfig) .createRequest(); assertNotNull(request); assertTrue(request.toString().contains(RequestType.PROFILE.toString())); }