public static < A , B , C , D , E > Answer < Void > toAnswer ( final VoidAnswer5 < A , B , C , D , E > answer ) { return new Answer < Void > ( ) { @ SuppressWarnings ( "unchecked" ) public Void answer ( InvocationOnMock invocation ) throws Throwable { answer . answer ( ( A ) invocation . getArgument ( 0 ) , ( B ) invocation . getArgument ( 1 ) , ( C ) invocation . getArgument ( 2 ) , ( D ) invocation . getArgument ( 3 ) , ( E ) invocation . getArgument ( 4 ) ) ; return null ; } } ; }
Construct an answer from a five parameter answer interface