### Question:
DefaultExceptionFormatter implements ExceptionFormatter { public boolean formatsException(Throwable t) { return true; }  String format(Throwable th); String defaultFormatSQLException(Throwable cause); boolean formatsException(Throwable t); void setCustomExceptionFormatter(ExceptionFormatter customFormatter);  }### Answer:
@Test public final void testFormatsException() { Assert.assertTrue(formatterUnderTest.formatsException(new Throwable())); Assert.assertTrue(formatterUnderTest.formatsException(new SQLException())); Assert.assertTrue(formatterUnderTest.formatsException(new SQLExecutionException(new SQLException(), ""))); Assert.assertTrue(formatterUnderTest.formatsException(new SQLExecutionException(new SQLException(), "some error"))); Assert.assertTrue(formatterUnderTest.formatsException(new SQLExecutionException(new SQLException(), null))); Assert.assertTrue(formatterUnderTest.formatsException(new IOException())); Assert.assertTrue(formatterUnderTest.formatsException(new DataTruncation(0, true, true, 0, 0))); Assert.assertTrue(formatterUnderTest.formatsException(new SQLWarning())); }