Is it possible to create a mock object that implements multiple interfaces with EasyMock?
Although I fundamentally agree with Nick Holt’s answer, I thought I should point out that mockito allows to do what you ask with the following call : Foo mock = Mockito.mock(Foo.class, withSettings().extraInterfaces(Bar.class)); Obviously you’ll have to use the cast: (Bar)mock when you need to use the mock as a Bar but that cast will not … Read more