### Question:
CodeGrantTypeHandler implements GrantRequestHandler { public HttpRequest getAuthorizationRequest(final OAuth2Accessor accessor, final String completeAuthorizationUrl) throws OAuth2RequestException { throw new OAuth2RequestException(CodeGrantTypeHandler.ERROR, "inappropriate call to CodeGrantTypeHandler.getAuthorizationRequest()", null); }  HttpRequest getAuthorizationRequest(final OAuth2Accessor accessor,
          final String completeAuthorizationUrl); String getCompleteUrl(final OAuth2Accessor accessor); String getGrantType(); static String getResponseType(); boolean isAuthorizationEndpointResponse(); boolean isRedirectRequired(); boolean isTokenEndpointResponse();  }### Answer:
@Test(expected = OAuth2RequestException.class) public void testGetAuthorizationRequest_1() throws Exception { final CodeGrantTypeHandler fixture = CodeGrantTypeHandlerTest.cgth; final OAuth2Accessor accessor = MockUtils.getOAuth2Accessor_Code(); final String completeAuthorizationUrl = "xxx"; fixture.getAuthorizationRequest(accessor, completeAuthorizationUrl); }