@Test
public void testValidateNotSignedCertificate() {

    try {
        BufferedInputStream bis = new BufferedInputStream(this.getClass().getResourceAsStream("/notsigned.crt"));
        Certificate cert = cf.generateCertificate(bis);
        assertFalse(crypto.validateCertificate(cert));
    } catch (CertificateException e) {
        Assert.fail("cannot read cert file");
    }
}