assertSame(recursiveCause, throwables[0]); assertSame(recursiveCause.getCause(), throwables[1]); assertSame(recursiveCause.getCause().getCause(), throwables[2]);
assertSame(cyclicCause, throwables[0]); assertSame(cyclicCause.getCause(), throwables[1]); assertSame(((ExceptionWithCause) cyclicCause.getCause()).getCause(), throwables[2]);
    public void testGetThrowables_Throwable_recursiveCause() {        Throwable[] throwables = ExceptionUtils.getThrowables(recursiveCause);        assertEquals(3, throwables.length);        assertSame(recursiveCause, throwables[0]);        assertSame(recursiveCause.getCause(), throwables[1]);        assertSame(recursiveCause.getCause().getCause(), throwables[2]);    }