title: Using Mockito for API Stubbing Load Test
body: <p>I have a Spring Boot application with a REST API. Behind the scenes it uses a vended SDK to call the vendors service. I need to run load tests on my application, but don’t want to call the vendor API and accidentally crash their system during testing.</p>
  
  <p>Is it possible to use Mockito outside of a JUnit test to create a mock for the vendor SDK objects during the normal application runtime?</p>
  
  <p>I figured I would use a profile based configuration beam to enable the mocked object when profile is “performance-test”. But I can find no article/discussion/mention of anyone using Mockito this way and it is making me second guess my approach. Thoughts?</p>