diff --git a/java-client/src/test/java/org/opensearch/client/opensearch/core/PutTemplateRequestTest.java b/java-client/src/test/java/org/opensearch/client/opensearch/core/PutTemplateRequestTest.java index 43446a4f32..449b41e496 100644 --- a/java-client/src/test/java/org/opensearch/client/opensearch/core/PutTemplateRequestTest.java +++ b/java-client/src/test/java/org/opensearch/client/opensearch/core/PutTemplateRequestTest.java @@ -16,17 +16,8 @@ public class PutTemplateRequestTest extends Assert { @Test public void deserialize_validFieldsIncluded_RequestIsBuilt() throws JsonProcessingException { final JsonpMapper mapper = new JsonbJsonpMapper(); - final Map indexTemplateMap = Map.of( - "name", - "test", - "index_patterns", - "*", - "create", - true, - "order", - 1 + final Map indexTemplateMap = Map.of("name", "test", "index_patterns", "*", "create", true, "order", 1); - ); final String indexTemplate = new ObjectMapper().writeValueAsString(indexTemplateMap); final var parser = mapper.jsonProvider().createParser(new StringReader(indexTemplate));