You got a 401 running your test because with @WebMvcTest, Spring does not load your security configuration. So, on your test class AuthenticationControllerTest, you should add an @Import with the configuration class that define your securityFilterChain bean. If the securityFilterChain bean is not in context, Spring uses defaults where all endpoints require authentication.
Also annotate your test method with @WithMockUser.
Hope this helps