Mortgage stress tests assess borrowers' ability to afford mortgage payments if interest rates rise. Lenders calculate the test using the Bank of Canada's 5-year benchmark rate or the contract rate plus 2%. This ensures borrowers can manage potential rate increases.