@Test
public void parsePrivateKeyTest() throws OadrSecurityException {

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