I met next exception with Controller\'s tests after implementing SpringSecurity:
Failed to load ApplicationContext No qualifying bean of type \'org.springfram