code: public static synchronized <T> T createNiceMock(Class<T> type) {
          return doMock(type, false, new NiceMockStrategy(), null, (Method[]) null);
      }
docs: Creates a nice mock object that supports mocking of final and native
  methods.
  
  @param <T>  the type of the mock object
  @param type the type of the mock object
  @return the mock object.