String url = "/defect/1234";
client.client = spy(client.client);
doReturn(createMockResponse("{}")).when(client.client).execute(any(HttpGet.class));
client.doGet(url);
Assert.assertTrue(client.client instanceof DecompressingHttpClient);
verify(client.client).execute(argThat(new HttpRequestUrlMatcher(client.getWsapiUrl() + url)));
}