Sample application to highlight the issue initialising eager singletons.
Application.ktfails to start if settingeagerInitSingletons()to trueSampleRequestHandlerTestfails for similar reasons and overridingnewApplicationContextBuilder()does not affect the outcome of the test