expected exception, nothing thrown: (stack frames omitted) Expecting code to raise a throwable. wrong message: (stack frames omitted) Expecting message to be: "payment failed" but was: "payment failed for order o-45" Throwable that failed the check: lab.assertj.custom.CheckoutException: payment failed for order o-45 Caused by: java.lang.IllegalStateException: gateway unavailable Caused by: java.io.IOException: connection reset by gateway wrong type: (stack frames omitted) Expecting actual throwable to be an instance of: java.lang.IllegalStateException but was: lab.assertj.custom.CheckoutException: payment failed for order o-45