@Test
public void deleteGoogleStorageFileTest() throws IOException {

  CloseableHttpResponse response = EasyMock.createNiceMock(CloseableHttpResponse.class);
  StatusLine status = EasyMock.createNiceMock(StatusLine.class);
  EasyMock.expect(response.getStatusLine()).andReturn(status).anyTimes();
  EasyMock.expect(status.getStatusCode()).andReturn(HttpStatus.SC_NO_CONTENT).anyTimes();
  EasyMock.replay(response, status);
  Capture<HttpDelete> capturedDel = Capture.newInstance();
  EasyMock.expect(httpClient.execute(EasyMock.capture(capturedDel))).andReturn(response).anyTimes();
  EasyMock.replay(httpClient);
  service.deleteGoogleStorageFile(httpClient, bucket, fileName, token);
  Assert.assertEquals("https://www.googleapis.com/storage/v1/b/bucket/o/myFile",
          capturedDel.getValue().getURI().toString());
}