Unwrap @MockBeans and @SpyBeans container annotations

MSAL

Replaces class-level @MockBeans and @SpyBeans container annotations with a single class-level @MockBean or @SpyBean annotation with a merged types attribute for compatibility with @MockitoBean.

org.openrewrite.java.spring.boot4.UnwrapMockAndSpyBeanContainers
mod run . --recipe=org.openrewrite.java.spring.boot4.UnwrapMockAndSpyBeanContainers

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