@Test
public void parseCertificateTest() throws OadrSecurityException {

	// valid rsa
	X509Certificate parseCertificate = OadrPKISecurity.parseCertificate(TestUtils.TEST_CRT);
	assertNotNull(parseCertificate);
	// valid ecc
	parseCertificate = OadrPKISecurity.parseCertificate(TestUtils.TEST_ECC_CRT);
	assertNotNull(parseCertificate);
	// invalid path raise exception
	boolean exception = false;
	try {
		OadrPKISecurity.parseCertificate("mouaiccool");
	} catch (OadrSecurityException e) {
		exception = true;
	}
	assertTrue(exception);
	// invalid pem raise exception
	exception = false;
	try {
		OadrPKISecurity.parseCertificate(TestUtils.TEST_KEY);
	} catch (OadrSecurityException e) {
		exception = true;
	}
	assertTrue(exception);
}