@Test
void testUpload() throws IOException {

    underTest.upload(CONTENT);
    verify(s3Client).putObject(putObjectRequestArgumentCaptor.capture(), requestBodyArgumentCaptor.capture());
    final PutObjectRequest putObjectRequest = putObjectRequestArgumentCaptor.getValue();
    assertThat(putObjectRequest.bucket(), is(BUCKET_NAME));
    assertThat(putObjectRequest.key(), is(FILE_NAME));
    assertThat(putObjectRequest.contentType(), is(CONTENT_TYPE));
    assertThat(putObjectRequest.storageClass(), is(StorageClass.REDUCED_REDUNDANCY));
    final RequestBody requestBody = requestBodyArgumentCaptor.getValue();
    assertThat(requestBody.contentStreamProvider().newStream().readAllBytes(), is(CONTENT));
}