Risk management

What is the purpose of a credit portfolio stress test?