@Test
void v1CaCert() throws Exception
{

    CertifiedPublicKey certificate = factory.decode(v1CaCert);
    assertTrue(certificate.isSignedBy(certificate.getPublicKeyParameters()), "CA should verify itself.");
    assertThat(certificate, instanceOf(X509CertifiedPublicKey.class));
    X509CertifiedPublicKey cert = (X509CertifiedPublicKey) certificate;
    assertThat(cert.getVersionNumber(), equalTo(1));
    assertThat(cert.isRootCA(), equalTo(true));
}