public static synchronized < T > T createNicePartialMock ( Class < T > type , String methodNameToMock , Class < ? > firstArgumentType , Class < ? > ... additionalArgumentTypes ) { return doMockSpecific ( type , new NiceMockStrategy ( ) , new String [ ] { methodNameToMock } , null , mergeArgumentTypes ( firstArgumentType , additionalArgumentTypes ) ) ; }
Nicely mock a single specific method . Use this to handle overloaded methods .