@Test
public void createTrustManagerFactoryTest() throws OadrSecurityException, KeyStoreException,
		NoSuchAlgorithmException, CertificateException, IOException {

	List<String> certificates = new ArrayList<>();
	certificates.add(TestUtils.TEST_CRT);
	TrustManagerFactory createTrustManagerFactory = OadrPKISecurity.createTrustManagerFactory(certificates);
	assertNotNull(createTrustManagerFactory);
	createTrustManagerFactory = OadrPKISecurity.createTrustManagerFactory(Lists.newArrayList());
	assertNotNull(createTrustManagerFactory);
	// invalid pem
	certificates = new ArrayList<>();
	certificates.add(TestUtils.TEST_KEY);
	boolean exception = false;
	try {
		createTrustManagerFactory = OadrPKISecurity.createTrustManagerFactory(certificates);
	} catch (OadrSecurityException e) {
		exception = true;
	}
	assertTrue(exception);
}