As mentioned in https://github.com/spring-projects/spring-framework/issues/29215#issuecomment-1271620565, please consider introducing a custom, defensive variant of AopTestUtils.getUltimateTargetObject() in SpringBootMockResolver to avoid attempting to unwrap proxies backed by a non-static TargetSource.