@Test
public void testSuppress() {

  Exception e = new RuntimeException(new RuntimeException(new RuntimeException()));
  for (int i = 0; i < 10; i++) {
    e = Throwables.suppress(e, new RuntimeException());
  }
  Throwable[] suppressed = Throwables.getSuppressed(e);
  Assert.assertEquals(10, suppressed.length);
  final SQLException sqlException = new SQLException(e);
  sqlException.setNextException(new SQLException("bla", new RuntimeException(new RuntimeException())));
  sqlException.setNextException(new SQLException("bla"));
  LOG.debug("Thowable", sqlException);
  Assert.assertEquals(2, Throwables.getSuppressed(sqlException).length);
}