public static Response executeRequest(String requestUrl, OAuth20Service scribe, OAuth2AccessToken accessToken) throws IOException {
    OAuthRequest request = new OAuthRequest(Verb.GET, requestUrl);
    scribe.signRequest(accessToken, request);
    try {
      Response response = scribe.execute(request);
      if (!response.isSuccessful()) {
        throw unexpectedResponseCode(requestUrl, response);
      }
      return response;
    } catch (InterruptedException e) {
      Thread.currentThread().interrupt();
      throw new IllegalStateException(e);
    } catch (ExecutionException e) {
      throw new IllegalStateException(e);
    }
  }
@Test
  public void execute_request() throws IOException {
    String body = randomAlphanumeric(10);
    mockWebServer.enqueue(new MockResponse().setBody(body));

    Response response = executeRequest(serverUrl + "/test", oAuth20Service, auth2AccessToken);

    assertThat(response.getBody()).isEqualTo(body);
  }