update stub to use 'expect' syntax