### Question:
DB2JCCExceptionFormatter implements ExceptionFormatter { public boolean formatsException(Throwable t) { if (t == null) { return false; } else { String className = t.getClass().getName(); return className.startsWith(JCC_EXCEPTION_PREFIX) && className.endsWith(JCC_EXCEPTION_CLASS); } }  boolean formatsException(Throwable t); String format(Throwable t); static final String JCC_EXCEPTION_PREFIX; static final String JCC_EXCEPTION_CLASS; }### Answer:
@Test public void testFormatsJccException() { SqlException testException = new SqlException(TEST_MESSAGE, TEST_CODE, TEST_STATE); assertTrue(classUnderTest.formatsException(testException)); }