diff --git a/src/test/java/org/opensearch/security/filter/SecurityRestFilterUnitTests.java b/src/test/java/org/opensearch/security/filter/SecurityRestFilterUnitTests.java index ed033274a4..d0af5dcdc9 100644 --- a/src/test/java/org/opensearch/security/filter/SecurityRestFilterUnitTests.java +++ b/src/test/java/org/opensearch/security/filter/SecurityRestFilterUnitTests.java @@ -62,19 +62,6 @@ public void setUp() throws NoSuchMethodException { ); } - /** - * Tests to ensure that the output of {@link SecurityRestFilter#wrap} is an instance of AuthczRestHandler - */ - @Test - public void testSecurityRestFilterWrap() throws Exception { - AdminDNs adminDNs = mock(AdminDNs.class); - - RestHandler wrappedRestHandler = sf.wrap(testRestHandler, adminDNs); - - assertTrue(wrappedRestHandler instanceof SecurityRestFilter.AuthczRestHandler); - assertFalse(wrappedRestHandler instanceof TestRestHandler); - } - @Test public void testDoesCallDelegateOnSuccessfulAuthorization() throws Exception { SecurityRestFilter filterSpy = spy(sf);