private CompletionStage<RestResponse> report(RestRequest request) {
      ServerManagement server = invocationHelper.getServer();
      return Security.doAs(request.getSubject(), () -> server.getServerReport().handle((path, t) -> {
               if (t != null) {
                  throw CompletableFutures.asCompletionException(t);
               }

               return createReportResponse(request, path.toFile(), invocationHelper.getRestCacheManager().getNodeName());
            })
      );
   }
@Test
   public void testServerReport() {
      CompletionStage<RestResponse> response = adminClient.server().report();
      ResponseAssertion.assertThat(response).isOk();
      ResponseAssertion.assertThat(response).hasContentType("application/gzip");
   }