public BaseIdentityProvider.Context newContext(HttpRequest request, HttpResponse response, BaseIdentityProvider identityProvider) {
    return new ContextImpl(request, response, identityProvider);
  }
@Test
  public void create_context() {
    JavaxHttpRequest httpRequest = new JavaxHttpRequest(request);
    JavaxHttpResponse httpResponse = new JavaxHttpResponse(response);
    BaseIdentityProvider.Context context = underTest.newContext(httpRequest, httpResponse, identityProvider);

    assertThat(context.getHttpRequest()).isEqualTo(httpRequest);
    assertThat(context.getHttpResponse()).isEqualTo(httpResponse);

    assertThat(context.getRequest()).isEqualTo(request);
    assertThat(context.getResponse()).isEqualTo(response);
    assertThat(context.getServerBaseURL()).isEqualTo(PUBLIC_ROOT_URL);
  }