diff --git a/java-client/src/test/java/org/opensearch/client/opensearch/ingest/TextEmbeddingProcessorTest.java b/java-client/src/test/java/org/opensearch/client/opensearch/ingest/TextEmbeddingProcessorTest.java index fd06385260..088fc59f82 100644 --- a/java-client/src/test/java/org/opensearch/client/opensearch/ingest/TextEmbeddingProcessorTest.java +++ b/java-client/src/test/java/org/opensearch/client/opensearch/ingest/TextEmbeddingProcessorTest.java @@ -13,13 +13,17 @@ package org.opensearch.client.opensearch.ingest; +import java.util.HashMap; import java.util.Map; import org.junit.Test; import org.opensearch.client.opensearch.model.ModelTestCase; public class TextEmbeddingProcessorTest extends ModelTestCase { - private static final Map baseFieldMap = Map.of("input_field", "vector_field"); + private static final Map baseFieldMap = new HashMap<>(); + static { + baseFieldMap.put("input_field", "vector_field"); + } private static TextEmbeddingProcessor.Builder baseTextEmbeddingProcessor() { return new TextEmbeddingProcessor.Builder().modelId("modelId").fieldMap(baseFieldMap).tag("some-tag");