@GET
  @Path("package/{packageName}")
  public Response getSinglePackageInfo(@PathParam("packageName") String packageName) {
    if (StringUtils.isEmpty(packageName)) {
      return new JsonResponse<>(Response.Status.BAD_REQUEST,
              "Can't get package info for empty name").build();
    }

    try {
      return new JsonResponse<>(
          Response.Status.OK, "", helium.getSinglePackageInfo(packageName)).build();
    } catch (RuntimeException e) {
      logger.error(e.getMessage(), e);
      return new JsonResponse<>(Response.Status.INTERNAL_SERVER_ERROR, e.getMessage()).build();
    }
  }
@Test
  void testGetSinglePackageInfo() throws IOException {
    String packageName = "name1";
    CloseableHttpResponse get = httpGet("/helium/package/" + packageName);
    assertThat(get, isAllowed());
    Map<String, Object> resp = gson.fromJson(EntityUtils.toString(get.getEntity(), StandardCharsets.UTF_8),
            new TypeToken<Map<String, Object>>() { }.getType());
    List<Map> body = (List<Map>) resp.get("body");

    assertEquals(1, body.size());
    Map pkg = (Map) body.get(0).get("pkg");
    assertEquals("name1", pkg.get("name"));
    get.close();
  }