returns the second parameter of an invocation . this additional answer could be used at stub time using the then | do | will org.mockito.stubbing.answer methods . for example : given trader.apply leesformula , oncreditdefaultswap . will returnssecondarg ; daanswer returnssecondarg . when trader . apply leesformula , oncreditdefaultswap concode_field_sep ReturnsArgumentAt RETURNS_LAST_ARGUMENT concode_elem_sep ReturnsArgumentAt RETURNS_FIRST_ARGUMENT concode_elem_sep ReturnsArgumentAt RETURNS_SECOND_ARGUMENT concode_field_sep Answer<T> returnsFirstArg concode_elem_sep Answer<T> delegatesTo concode_elem_sep Answer<T> returnsArgAt concode_elem_sep Answer<T> returnsLastArg concode_elem_sep Answer<T> returnsElementsOf
Answer < T > function ( ) { return ( Answer < T > ) RETURNS_SECOND_ARGUMENT ; }