diff --git a/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/impl/TestErrorTranslation.java b/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/impl/TestErrorTranslation.java index b6ec7ce826b91..987e9c3b5f5e2 100644 --- a/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/impl/TestErrorTranslation.java +++ b/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/impl/TestErrorTranslation.java @@ -169,7 +169,7 @@ public void testEncryptionClientExceptionExtraction() throws Throwable { public void testNonEncryptionClientExceptionExtraction() throws Throwable { intercept(SdkException.class, () -> { throw maybeExtractSdkException( - sdkException("top", sdkException("middle", new NoConstructorIOE()))); + sdkException("top", sdkException("middle", NoSuchKeyException.builder().build()))); }); } }