public void testAcceptsEntity() throws Exception
{
// test that media type is chosen from accepts
{
ClientRequest request = new ClientRequest(generateURL("/mapper/accepts-entity"));
request.accept("application/json");
ClientResponse response = request.get();
Assert.assertEquals(200, response.getStatus());
Assert.assertEquals("application/json", response.getResponseHeaders().getFirst("Content-Type"));
String error = (String) response.getEntity(String.class);
Assert.assertNotNull(error);