New Solution - Updated 4/16/2017 The old solution shown below is very cumbersome. So here is the new solution which is much easier. Old solution This solution is courtesy Chris Harris UK. Step 1: Create a bean factory post processor. Step 2 : Create the simple test class Step 3 : Finally wire up everything in Spring configuration file
"I have no special talent. I am only passionately curious" - Albert Einstein