@Test(expected = SdkClientException.class)
public void checkS3WithError() {

  Mockito.when(
      s3.putObject(
          Mockito.any(PutObjectRequest.class)))
      .thenThrow(new SdkClientException(""));
  underTest.checkS3Put(s3, "bucket", "key");
}