stores the object in expectations