In the tests, where ``` @Profile({"test", "jwt"}) ``` was used, actually means ``` @Profile("test | jwt") ``` This should be fixed to be ``` @Profile("test & jwt") ``` as per https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/context/annotation/Profile.html