Add extension point to pre-configure a MockMvcBuilder

Issue: SPR-11497
Fix failing test