public void init() throws GeneralSecurityException, IOException {
    createCACertAndKeyPair();
    initInternal();
  }
@Test
  void testInit() throws Exception {
    ProxyCA proxyCA = new ProxyCA();
    assertNull(proxyCA.getCaCert());
    assertNull(proxyCA.getCaKeyPair());
    assertNull(proxyCA.getX509KeyManager());
    assertNull(proxyCA.getHostnameVerifier());

    proxyCA.init();
    assertNotNull(proxyCA.getCaCert());
    assertNotNull(proxyCA.getCaKeyPair());
    assertNotNull(proxyCA.getX509KeyManager());
    assertNotNull(proxyCA.getHostnameVerifier());
  }