diff --git a/samples/inmemory-jc/pom.xml b/samples/inmemory-jc/pom.xml
index c7bea56b9b..24832c08be 100644
--- a/samples/inmemory-jc/pom.xml
+++ b/samples/inmemory-jc/pom.xml
@@ -208,6 +208,12 @@
1.9.5
test
+
+ org.springframework.security
+ spring-security-test
+ 4.0.0.CI-SNAPSHOT
+ test
+
org.springframework
spring-test