}, SENT_MESSAGE);
assertEquals(RECEIVED_MESSAGE, tg.getT());
}
public void testResourceDelete() {
MockHttpServerResponse response1 = new MockHttpServerResponse();
response1.setMockResponseCode(200);
MockHttpServerResponse response2 = new MockHttpServerResponse();
response2.setMockResponseCode(200);
MockHttpServerResponse response3 = new MockHttpServerResponse();
response3.setMockResponseCode(200);
server.setMockHttpServerResponses(response1, response2, response3);
RestClient client = getRestClient();
Resource resource = client.resource(serviceURL);
String response = resource.accept(MediaType.TEXT_PLAIN_TYPE).delete(String.class);
assertEquals(RECEIVED_MESSAGE, response);