stub is deprecated. Use double instead