How to authenticate user while writing integration test of secured rest api

I am trying to write test cases where I have used keycloak security in Spring boot application.
Now I am not able to write integration test of my rest api where user should be authenticate via mock user.