deleteResult.add("Errors", new JsonArray());
deleteResult.add("Warnings", new JsonArray());
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());
}