@Test
public void testGetInstance() throws Exception {

    SSLConfig sslConfig = new SSLConfig();
    sslConfig.setKeyStoreName(SSLSupport.QUICKFIXJ_KEY_STORE);
    sslConfig.setKeyStorePassword(SSLSupport.QUICKFIXJ_KEY_STORE_PWD.toCharArray());
    sslConfig.setKeyStoreType("JKS");
    sslConfig.setKeyManagerFactoryAlgorithm("SunX509");
    sslConfig.setTrustStoreName("nonexistent");
    sslConfig.setTrustStoreType("JKS");
    sslConfig.setTrustManagerFactoryAlgorithm("PKIX");
    SSLContext context = SSLContextFactory.getInstance(sslConfig);
    assertNotNull(context);
    assertNotNull(context.getProvider());
}