code: public static synchronized <T> IExpectationSetters<T> expectNiceNew(Class<T> type, Object... arguments)
              throws Exception {
          return doExpectNew(type, new NiceMockStrategy(), null, arguments);
      }
docs: Allows specifying expectations on new invocations. For example you might
  want to throw an exception or return a mock.
  <p/>
  This method allows any number of calls to a new constructor without
  throwing an exception.
  <p/>
  Note that you must replay the class when using this method since this
  behavior is part of the class mock.