@GET
  @Path("all")
  @ZeppelinApi
  public Response getAll() {
    try {
      Map<String, String> properties =
          configurationService.getAllProperties(getServiceContext(), new RestServiceCallback<>());
      return new JsonResponse<>(Status.OK, "", properties).build();
    } catch (IOException e) {
      return new JsonResponse<>(Status.INTERNAL_SERVER_ERROR, "Fail to get configuration", e).build();
    }
  }
@Test
  void testGetAll() throws IOException {
    try (CloseableHttpResponse get = httpGet("/configurations/all")) {
      Map<String, Object> resp =
          gson.fromJson(EntityUtils.toString(get.getEntity(), StandardCharsets.UTF_8),
              new TypeToken<Map<String, Object>>() {
              }.getType());
      Map<String, String> body = (Map<String, String>) resp.get("body");
      assertTrue(body.size() > 0);
      // it shouldn't have key/value pair which key contains "password"
      for (String key : body.keySet()) {
        assertTrue(!key.contains("password"));
      }
    }
  }