A little more information is required for an accurate answer:
1) do you write unit or integration tests?
If unit tests, you should not worry at all about the authorization server. All you need to do is configure SecurityContext correctly for your mockMvc request (or reactive equivalent).
If integration tests, Spring provides tools for this, but I will focus on unit tests, because, as I understand it, you are trying to write.
2) what versions of spring libraries do you use?
spring-security-oauth2 is deprecated and does not support unit tests, but in my answer to this other question I explained in detail how to create annotations to set up such a security context.
Starting with version 5.2 (choose the last step), Spring-Security-Test has basic support for unit testing @Controller, protected by JWT. If you use introspection or protected @Service, you will have to refer to this library, which I wrote, because the Spring-Security team decided to integrate only a small part of my work.
ch4mp source share