@Test
public void testFetchZeroSize() throws Exception {

  final S3Object expected = new S3Object();
  expected.setKey("object-key");
  expected.setBucketName("bucket-name");
  when(mockS3.getObject(any(GetObjectRequest.class))).thenReturn(expected);
  try {
    final S3Object download = downloader.fetch(record);
    assertThat(download).isNotNull();
    failBecauseExceptionWasNotThrown(AmazonS3ZeroSizeException.class);
  } catch (AmazonS3ZeroSizeException e) {
  }
  verify(mockS3).getObject(any(GetObjectRequest.class));
}