setContext is used in testing, when used in testing, the entire context object can be set at once.