**Describe the bug** In the following code `testNoAnnotation` should not use `@WithMockUser` because the mode is `EnclosingConfiguration.OVERRIDE`. ```java @WithMockUser @NestedTestConfiguration(NestedTestConfiguration.EnclosingConfiguration.OVERRIDE) class OverrideOuterClass { class InnerClass { void testNoAnnotation() { } } } ``` To solve this `WithSecurityContextTestExecutionListener` should leverage `TestContextAnnotationUtils`.