docs for ExpectPrepare