/**
 * The MIT License
 *
 * Copyright (C) 2015 Asterios Raptis
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */
package de.alpharogroup.crypto.key.reader;

import org.testng.annotations.Test;

/**
 * Test class for {@link PublicKeyReader}.
 */
public class PublicKeyReaderTest
{

	@Test
	public void test()
	{
	}

}

@@ -1312,39 +1312,785 @@
 %7B%0A%0A%09
-@Test%0A%09public void test()%0A%09%7B%0A%09%7D
+/**%0A%09 * Test method for %7B@link PublicKeyReader#readPemPublicKey(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 publickeyPemDir = new File(PathFinder.getSrcTestResourcesDir(), %22pem%22);%0A%09%09final File publickeyPemFile = new File(publickeyPemDir, %22public.pem%22);%0A%0A%09%09Security.addProvider(new BouncyCastleProvider());%0A%09%09final String publicKeyAsBase64String = PublicKeyReader%0A%09%09%09.readPemFileAsBase64(publickeyPemFile);%0A%0A%09%09final PublicKey publicKey = PublicKeyReader.readPemPublicKey(publickeyPemFile,%0A%09%09%09SecurityProvider.BC);%0A%0A%09%09final String base64 = PublicKeyExtensions.toBase64(publicKey);%0A%09%09AssertJUnit.assertNotNull(publicKeyAsBase64String);%0A%09%09AssertJUnit.assertNotNull(base64);%0A%09%7D%0A
 %0A%0A%7D%0A

Update PublicKeyReaderTest.java