code: 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));
      }
docs: Nicely mock a single specific method. Use this to handle overloaded
  methods.
  
  @param <T>                     The type of the mock.
  @param type                    The type that'll be used to create a mock instance.
  @param methodNameToMock        The name of the method to mock
  @param firstArgumentType       The type of the first parameter of the method to mock
  @param additionalArgumentTypes Optionally more parameter types that defines the method. Note
  that this is only needed to separate overloaded methods.
  @return A mock object of type <T>.