@GET
  @Produces({ MediaType.APPLICATION_JSON + "; " + JettyUtils.UTF_8,
      MediaType.APPLICATION_XML + "; " + JettyUtils.UTF_8 })
  public GpgInfo get() {
    return new GpgInfo(this.gpgGenerator.getGPGContext());
  }
@Test
  public void testGetGPG() throws JSONException, Exception {
    WebResource r = resource();
    JSONObject json = r.path("ws").path("v1").path("gpg")
        .accept(MediaType.APPLICATION_JSON).get(JSONObject.class);
    assertNotNull(json);
  }