Replace try/catch with assertj - apex-pdp