org.jboss.logging.Logger with @Inject annotation in my code causes NullPointerException in my unit test annotated with @ExtendWith(MockitoExtension.class), if I define it as a org.mockito.@Mock. It's fine if it's used in @QuarkusTest as @Inject Logger, as Quarkus will inject it.
I don't want to change my unit test to @QuarkusTest only for this reason. How can I avoid this NPE caused by logger not initialized by Mockito?
Is this question related? Mock Quarkus provided logger