public void checkPAT(String serverUrl, String token) {
    String url = String.format("%s/_apis/projects?%s", getTrimmedUrl(serverUrl), API_VERSION_3);
    doGet(token, url);
  }
@Test
  public void check_pat() throws InterruptedException {
    enqueueResponse(200, " { \"count\": 1,\n" +
      "  \"value\": [\n" +
      "    {\n" +
      "      \"id\": \"3311cd05-3f00-4a5e-b47f-df94a9982b6e\",\n" +
      "      \"name\": \"Project\",\n" +
      "      \"description\": \"Project Description\",\n" +
      "      \"url\": \"https://ado.sonarqube.com/DefaultCollection/_apis/projects/3311cd05-3f00-4a5e-b47f-df94a9982b6e\",\n" +
      "      \"state\": \"wellFormed\",\n" +
      "      \"revision\": 63,\n" +
      "      \"visibility\": \"private\"\n" +
      "    }]}");

    underTest.checkPAT(server.url("").toString(), "token");

    RecordedRequest request = server.takeRequest(10, TimeUnit.SECONDS);
    String azureDevOpsUrlCall = request.getRequestUrl().toString();
    assertThat(azureDevOpsUrlCall).isEqualTo(server.url("") + "_apis/projects?api-version=3.0");
    assertThat(request.getMethod()).isEqualTo("GET");

    assertThat(logTester.logs(Level.DEBUG))
      .contains("--> GET " + server.url("").toString() + "_apis/projects?api-version=3.0");
  }