Mockito: How to mock javax.inject.Provider-created prototype beans?

I would stub that Provider and make it return the prototypeMock every time using the @Before method invoked before each of the tests:

private javax.inject.Provider<MyPrototype> prototypeFactoryStub;

MyPrototype prototypeMock;

MySingleton sut;

public void init(){
   MockitoAnnotations.initMocks(this); // optional


public void testPrototype() {
    verify(prototypeMock, times(1)).invoke();

I have written an article on Mockito Stubbing if you need a further read.