code: public static synchronized <T> ConstructorExpectationSetup<T> whenNew(Class<T> type) {
          return new DefaultConstructorExpectationSetup<T>(type);
      }
docs: Allows specifying expectations on new invocations. For example you might
  want to throw an exception or return a mock.