fix: added a NoOpPasswordEncoder to the test context
<beans:bean class="org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler" name="awareAuthenticationSuccessHandler"/>
<beans:bean class="com.baeldung.security.RefererAuthenticationSuccessHandler" name="refererHandler"/>
<beans:bean class="com.baeldung.controller.SecuredResourceController" />
+ <beans:bean id ="passwordEncoder" class = "org.springframework.security.crypto.password.NoOpPasswordEncoder" factory-method = "getInstance" />
<authentication-manager>
<authentication-provider>
