CertificateUtil { public static CertPathValidator createCertPathValidator() { try { return CertPathValidator.getInstance("PKIX"); } catch (NoSuchAlgorithmException e) { throw new UnexpectedCheckedException(e); } } private  CertificateUtil(); static CertPathValidator createCertPathValidator(); static PKIXParameters createPKIXParameters(Set<TrustAnchor> trustAnchors); static KeyStore createKeyStore(); static Set<TrustAnchor> generateTrustAnchors(List<C> certificates); static CertPath generateCertPath(List<C> certificates); static X509Certificate generateX509Certificate(byte[] bytes); static X509Certificate generateX509Certificate(InputStream inputStream);  }
@Test void generateCertPathValidator_test() { CertPathValidator certPathValidator = CertificateUtil.createCertPathValidator(); assertThat(certPathValidator).isNotNull(); }