Added deprecationWarning
Update doc
Use spyOn
Mark deprecationWarning as private.
Merge pull request #1681 from AnalyticalGraphicsInc/deprecationWarning

Added deprecationWarning