@Test
void v1Cert() throws Exception
{

    CertifiedPublicKey caCert = factory.decode(v1CaCert);
    CertifiedPublicKey certificate = factory.decode(v1Cert);
    assertTrue(certificate.isSignedBy(caCert.getPublicKeyParameters()),
        "End certificate should be verified by CA.");
    assertThat(certificate, instanceOf(X509CertifiedPublicKey.class));
    X509CertifiedPublicKey cert = (X509CertifiedPublicKey) certificate;
    assertThat(cert.getVersionNumber(), equalTo(1));
}