@Test
public void testLoadCertificateFromKeyStore() throws IOException, GeneralSecurityException {

    List<X509Certificate> certs = PemReader.readCertificateChain(
            x509TestContext.getKeyStoreFile(KeyStoreFileType.PEM));
    Assert.assertEquals(1, certs.size());
    Assert.assertEquals(x509TestContext.getKeyStoreCertificate(), certs.get(0));
}