I use the SpringJUnit4ClassRunner to run integration tests for a Spring Boot application.
During my search I found out it is possible to reload the app context with @DirtiesContext.
My issue: I only need to reload the security configuration (which depends on a DB entry), while keeping the rest as is (or to be precise: I need to keep the H2 database as is).
How to only reload the security configuration before a JUnit test?