@Test
public void testFetch() throws Exception {

  final S3Object expected = new S3Object();
  expected.setKey("object-key");
  expected.setBucketName("bucket-name");
  expected.getObjectMetadata().setContentLength(100);
  when(mockS3.getObject(any(GetObjectRequest.class))).thenReturn(expected);
  final S3Object actual = downloader.fetch(record);
  verify(mockS3).getObject(any(GetObjectRequest.class));
  assertThat(actual).isEqualTo(expected);
}