See https://github.com/spring-projects/spring-aot-smoke-tests/tree/main/security-method for basic usage