diff --git a/src/test/java/org/opensearch/security/filter/SecurityResponseTests.java b/src/test/java/org/opensearch/security/filter/SecurityResponseTests.java index efbb653926..228c91fb60 100644 --- a/src/test/java/org/opensearch/security/filter/SecurityResponseTests.java +++ b/src/test/java/org/opensearch/security/filter/SecurityResponseTests.java @@ -20,7 +20,6 @@ import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.equalTo; -import static io.netty.handler.codec.http.HttpHeaders.Values.APPLICATION_JSON; public class SecurityResponseTests { @@ -30,6 +29,6 @@ public void testSecurityResponseHasSingleContentType() { final RestResponse restResponse = response.asRestResponse(); assertThat(restResponse.status(), equalTo(RestStatus.OK)); - assertThat(restResponse.contentType(), equalTo(APPLICATION_JSON)); + assertThat(restResponse.contentType(), equalTo(XContentType.JSON.mediaType())); } }