### Question:
S3Client { void deleteObject(String bucket, String key) { if (dryRunEnabled) { log.info("Dry run - deleting: \"{}/{}\"", bucket, key); } else { log.info("Deleting \"{}/{}\"", bucket, key); amazonS3.deleteObject(bucket, key); } } S3Client(AmazonS3 amazonS3, boolean dryRunEnabled);   }### Answer:
@Test void deleteObject() { amazonS3.putObject(bucket, key1, content); s3Client.deleteObject(bucket, key1); assertThat(amazonS3.doesObjectExist(bucket, key1)).isFalse(); }