Test that shows the usage of parent context injection in {@link org.springframework.test.web.server.setup.MockMvcBuilders}, by calling {@link org.springframework.test.web.server.setup.ContextMockMvcBuilder#setParentContext(org.springframework.context.ApplicationContext)}during setup.
When a controller and a junit depend on the same bean(s) in a service context for instance, you may want to initialize the service context in the junit and then inject it as a parent context of the web context.
@author Thomas Bruyelle