* For JAXB objects, there will be an error as the resource will return a
* text/plain representation.
*/
public void testAcceptHeaderForJAXB() {
try {
Echo e = client.resource(getBaseURI() + "/echoaccept").get(Echo.class);
fail();
// String value = e.getValue();
// assertTrue(value, value.contains(MediaType.APPLICATION_JSON));
// assertTrue(value, value.contains(MediaType.APPLICATION_XML));
// assertTrue(value, value.contains(MediaType.TEXT_XML));
// assertTrue(value, value.contains("application/javascript"));
} catch (RuntimeException e) {
assertEquals(e.getMessage(), String
.format("No reader for type class %s and media type %s",
Echo.class.getName(),
MediaType.TEXT_PLAIN));
}
}