assertEquals(RECEIVED_MESSAGE, tg.getT());
}
public void testHttpErrorNoResponse() throws IOException {
server.setMockResponseCode(400);
RestClient client = getRestClient();
Resource resource = client.resource(serviceURL);
try {
resource.accept("text/plain").invoke("GET", String.class, null);
fail("ClientWebException must be thrown");
} catch (ClientWebException e) {
assertTrue(e.getResponse().getStatusCode() == 400);