HBASE-26244 Avoid trim the error stack trace when running UT with maven (#3654)