If you have to stub mock method which should just return passed argument you probably stubbing interaction for each of them:
BDDMockito.given(mock.someMethod(argMock)).willReturn(argMock);
BDDMockito.given(mock.someMethod(anotherArgMock)).willReturn(anotherArgMock);
...
BDDMockito.given(mock.someMethod(yetAnotherArg)).willReturn(yetAnotherArg);
What to do if you have a lot of objects to be passed into someMethod(..) and you do not want to stub every possible invocations?
Continue reading