It looks like you need MockSettings.extraInterfaces .
MockedClass mockedClass = mock(MockedClass.class, withSettings().extraInterfaces(SampleInterface.class));
Please note that it comes with its own warning label:
This cryptic function should be used very rarely. An object under testing should know its co-authors and dependencies exactly. If you use it often than [sic], make sure that you are really creating simple, clean, and readable code.
Alternatively, create an interface for testing that extends all the interfaces you want your layout to implement and mock this normal way.
source share