Currently we can use @DirtiesContext to restart the full ApplicationContext used by the test class. However sometimes this might be a heavy operation and introduce very lengthy tests. Introducing a special @TestScope might reduce the pain a little.
Comment From: mdeinum
Duplicate of #18606