diff --git a/src/test/java/org/opensearch/neuralsearch/query/NeuralSparseQueryBuilderTests.java b/src/test/java/org/opensearch/neuralsearch/query/NeuralSparseQueryBuilderTests.java index 6588b8c77..8681deeb5 100644 --- a/src/test/java/org/opensearch/neuralsearch/query/NeuralSparseQueryBuilderTests.java +++ b/src/test/java/org/opensearch/neuralsearch/query/NeuralSparseQueryBuilderTests.java @@ -129,13 +129,13 @@ public void testFromXContent_whenBuiltWithMaxTokenScore_thenThrowWarning() { } */ XContentBuilder xContentBuilder = XContentFactory.jsonBuilder() - .startObject() - .startObject(FIELD_NAME) - .field(QUERY_TEXT_FIELD.getPreferredName(), QUERY_TEXT) - .field(MODEL_ID_FIELD.getPreferredName(), MODEL_ID) - .field(MAX_TOKEN_SCORE_FIELD.getPreferredName(), MAX_TOKEN_SCORE) - .endObject() - .endObject(); + .startObject() + .startObject(FIELD_NAME) + .field(QUERY_TEXT_FIELD.getPreferredName(), QUERY_TEXT) + .field(MODEL_ID_FIELD.getPreferredName(), MODEL_ID) + .field(MAX_TOKEN_SCORE_FIELD.getPreferredName(), MAX_TOKEN_SCORE) + .endObject() + .endObject(); XContentParser contentParser = createParser(xContentBuilder); contentParser.nextToken();