code: public static synchronized <T> T mock(Class<T> type) {
          return DefaultMockCreator.mock(type, false, false, null, null, (Method[]) null);
      }
docs: Creates a 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.