CertificateIdentityException extends Exception { public CertificateIdentityException() { super(); } CertificateIdentityException();  CertificateIdentityException(String message);  CertificateIdentityException(Throwable cause);   }
@Test public void testCertificateIdentityException() { CertificateIdentityException ex; ex = new CertificateIdentityException(); assertNotNull(ex); ex = new CertificateIdentityException("err msg"); assertEquals(ex.getMessage(), "err msg"); Throwable t = new Throwable(); ex = new CertificateIdentityException(t); assertSame(ex.getCause(), t); }