While writing junits for unit/integration testing, many times we come across a scenario where the application context object is required for multiple reasons like to get bean objects, to listen to context events etc.For example, a service invokes a c...