* that this is only needed to separate overloaded methods.
* @return A mock object of type <T>.
*/
public static synchronized <T> T createPartialMock(Class<T> type, String methodNameToMock,
Class<?> firstArgumentType, Class<?>... additionalArgumentTypes) {
return doMockSpecific(type, new DefaultMockStrategy(), new String[] { methodNameToMock }, null,
mergeArgumentTypes(firstArgumentType, additionalArgumentTypes));
}