public KeyManagerFactory createKeyManagerFactory() throws NoSuchProviderException, NoSuchAlgorithmException {

        return getProvider() != null ? KeyManagerFactory.getInstance(getAlgorithm(), getProvider())
                : KeyManagerFactory.getInstance(getAlgorithm());
    }
@Test
    public void testDefaults() throws Exception {
        assertNotNull(factoryBean.createKeyManagerFactory());
    }