public static String getStackTrace(final Throwable throwable) {
        final StringWriter sw = new StringWriter();
        final PrintWriter pw = new PrintWriter(sw, true);
        throwable.printStackTrace(pw);
        return sw.getBuffer().toString();
    }
@Test
    void getStackTrace() {
        Assertions.assertTrue(ExceptionUtils.getStackTrace(exception).contains("Exception0"));
    }