SelfCertSigner implements CertSigner { @Override public void close() { } SelfCertSigner(PrivateKey caPrivateKey, X509Certificate caCertificate); @Override String generateX509Certificate(String csr, String keyUsage, int expiryTime); @Override String getCACertificate(); @Override int getMaxCertExpiryTimeMins(); @Override void close();  }
@Test public void testSelfCertSignerFactory() { SelfCertSignerFactory certFactory = new SelfCertSignerFactory(); assertNotNull(certFactory); CertSigner certSigner = certFactory.create(); assertNotNull(certSigner); certSigner.close(); }