Replace PowerMockito.doX() with Mockito.doX()

MSAL

Retargets PowerMockito's doReturn, doThrow, doAnswer, doNothing and doCallRealMethod to Mockito, except for chains that still stub a member by name or a class. There Stubber.when(Object, String, ...) and Stubber.when(Class) have no Mockito counterpart, so that chain has to stay on PowerMock to keep compiling. The other chains in the same file are retargeted.

org.openrewrite.java.testing.mockito.PowerMockitoDoStubbingTargetToMockito
mod run . --recipe=org.openrewrite.java.testing.mockito.PowerMockitoDoStubbingTargetToMockito

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.