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

	String password = UUID.randomUUID().toString();
	List<String> certificates = new ArrayList<>();
	certificates.add(TestUtils.TEST_CRT);
	SSLContext createSSLContext = OadrPKISecurity.createSSLContext(TestUtils.TEST_KEY, TestUtils.TEST_CRT,
			certificates, password);
	assertNotNull(createSSLContext);
	createSSLContext = OadrPKISecurity.createSSLContext(TestUtils.TEST_KEY, TestUtils.TEST_CRT,
			Lists.newArrayList(), password);
	assertNotNull(createSSLContext);
	// invalid pem
	boolean exception = false;
	try {
		createSSLContext = OadrPKISecurity.createSSLContext(TestUtils.TEST_CRT, TestUtils.TEST_KEY, certificates,
				password);
	} catch (OadrSecurityException e) {
		exception = true;
	}
	assertTrue(exception);
}