Testing one’s mettle

1. Challenging your strength of mind or conviction. 2. Challenging your ability to mentally and emotionally handle a situation.