We are using spring security in our sample so we have to add spring security test dependency.
xxxxxxxxxx
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-test</artifactId>
<scope>test</scope>
</dependency>