@GET
  @Produces({MediaType.APPLICATION_JSON})
  public Map<String, Object> requestFormats() {
    return SUPPORTED_FORMATS;
  }
@Test
  public void testFormats() {
    assertEquals(1, server.requestFormats().size());
    assertEquals( ((List)server.requestFormats().get("responseTypes")).get(0), "application/json");
  }