diff --git a/java-client/src/test/java/org/opensearch/client/opensearch/integTest/aws/AwsSdk2GetRequestIT.java b/java-client/src/test/java/org/opensearch/client/opensearch/integTest/aws/AwsSdk2GetRequestIT.java new file mode 100644 index 0000000000..1d75f821db --- /dev/null +++ b/java-client/src/test/java/org/opensearch/client/opensearch/integTest/aws/AwsSdk2GetRequestIT.java @@ -0,0 +1,26 @@ +/* + * SPDX-License-Identifier: Apache-2.0 + * + * The OpenSearch Contributors require contributions made to + * this file be licensed under the Apache-2.0 license or a + * compatible open source license. + */ + +package org.opensearch.client.opensearch.integTest.aws; + +import org.junit.Assert; +import org.junit.Test; +import org.opensearch.client.opensearch.OpenSearchClient; +import org.opensearch.client.opensearch.core.*; + +public class AwsSdk2GetRequestIT extends AwsSdk2TransportTestCase { + @Test + public void testBulkRequest() throws Exception { + resetTestIndex(false); + final OpenSearchClient client = getClient(false, null, null); + + GetRequest request = new GetRequest.Builder().index(TEST_INDEX).id("does-not-exist").build(); + GetResponse getResponse = client.get(request, SimplePojo.class); + Assert.assertFalse(getResponse.found()); + } +}