defect.add("Errors", new JsonArray());
defect.add("Warnings", new JsonArray());
defect.addProperty("_ref", "/defect/1234");
GetRequest request = new GetRequest("/defect/1234");
doReturn(new Gson().toJson(response)).when(api.client).doGet(request.toUrl());
GetResponse getResponse = api.get(request);
verify(api.client).doGet(request.toUrl());
Assert.assertTrue(getResponse.wasSuccessful());
JsonObject obj = getResponse.getObject();