Replace try/catch blocks with assertj - apex-pdp