@@ -0,0 +1,787 @@
+package de.alpharogroup.crypto.key.reader;%0A%0Aimport java.io.File;%0Aimport java.security.cert.X509Certificate;%0A%0Aimport org.testng.AssertJUnit;%0Aimport org.testng.annotations.Test;%0A%0Aimport de.alpharogroup.file.search.PathFinder;%0A%0Apublic class CertificateReaderTest %7B%0A%0A%0A%09/**%0A%09 * Test method for %7B@link CertificateReader#readPemCertificate(File)%7D.%0A%09 *%0A%09 * @throws Exception%0A%09 *             the exception%0A%09 */%0A%09@Test%0A%09public void testReadPemFileAsBase64() throws Exception%0A%09%7B%0A%09%09final File pemDir = new File(PathFinder.getSrcTestResourcesDir(), %22pem%22);%0A%09%09final File certificateFile = new File(pemDir, %22certificate.cert%22);%0A%0A%09%09X509Certificate certificate = CertificateReader.readPemCertificate(certificateFile);%0A%09%09AssertJUnit.assertNotNull(certificate);%0A%09%09System.out.println(certificate);%0A%09%09%0A%09%7D%0A%0A%7D%0A

Create CertificateReaderTest.java