diff --git a/src/test/java/software/amazon/encryption/s3/S3EncryptionClientCRTTest.java b/src/test/java/software/amazon/encryption/s3/S3EncryptionClientCRTTest.java index 84a91f8eb..7cdd65967 100644 --- a/src/test/java/software/amazon/encryption/s3/S3EncryptionClientCRTTest.java +++ b/src/test/java/software/amazon/encryption/s3/S3EncryptionClientCRTTest.java @@ -32,8 +32,6 @@ import java.security.NoSuchAlgorithmException; import java.security.Provider; import java.security.Security; -import java.util.HashMap; -import java.util.Map; import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionException; import java.util.concurrent.ExecutorService; @@ -42,7 +40,6 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; -import static software.amazon.encryption.s3.S3EncryptionClient.withAdditionalConfiguration; import static software.amazon.encryption.s3.utils.S3EncryptionClientTestResources.BUCKET; import static software.amazon.encryption.s3.utils.S3EncryptionClientTestResources.appendTestSuffix; import static software.amazon.encryption.s3.utils.S3EncryptionClientTestResources.deleteObject; @@ -549,19 +546,14 @@ public void AsyncAesGcmV3toV3LargeObjectCRT() throws IOException { .build(); ExecutorService singleThreadExecutor = Executors.newSingleThreadExecutor(); - Map encryptionContext = new HashMap<>(); - encryptionContext.put("user-metadata-key", "user-metadata-value-v3-to-v3"); - CompletableFuture futurePut = asyncClient.putObject(builder -> builder .bucket(BUCKET) - .overrideConfiguration(withAdditionalConfiguration(encryptionContext)) .key(objectKey), AsyncRequestBody.fromInputStream(inputStream, fileSizeLimit, singleThreadExecutor)); futurePut.join(); singleThreadExecutor.shutdown(); CompletableFuture> getFuture = asyncClient.getObject(builder -> builder .bucket(BUCKET) - .overrideConfiguration(S3EncryptionClient.withAdditionalConfiguration(encryptionContext)) .key(objectKey), AsyncResponseTransformer.toBlockingInputStream()); ResponseInputStream output = getFuture.join();