public TrustManagerFactory createTrustManagerFactory()
      throws NoSuchProviderException, NoSuchAlgorithmException {

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