title: Spring - Skip init-method in unit test
body: <p>I would like to test Spring configuration in Junit test case without invoking init-method on configured beans. I could have coded my init-methods to skip actual work based on system property which could have been set in test case but I am looking for a cleaner solution.</p>