Using @RunWith(SpringJUnit4ClassRunner.class)
If you use @RunWith(SpringJUnit4ClassRunner.class) in a JUnit test class and it just cannot run, do double check your JUnit version. It requires JUnit 4.9 or above.
A place for all technical hints