Unit testing in Authenticator SPI

Hello everyone, I’m trying to write tests for my authenticator SPI, e.g. Terms and Conditions, for Keycloak. I’ve found the integration tests in the Keycloak GitHub repository, but I prefer unit testing for better coverage. Is there any documentation or sample code for unit testing of an SPI?

You can do it with some mocks (e.g. mockito).