DeleteRequest request = new DeleteRequest("/defect/1234");
doReturn(new Gson().toJson(response)).when(api.client).doDelete(request.toUrl());
DeleteResponse deleteResponse = api.delete(request);
verify(api.client).doDelete(request.toUrl());
Assert.assertTrue(deleteResponse.wasSuccessful());
}
public void shouldGet() throws Exception {
JsonObject response = new JsonObject();
JsonObject defect = new JsonObject();