stores expectations internally in a hash