CertFileTrustAnchorsProvider extends CachingTrustAnchorsProviderBase { public void setCertificates(List<Path> certificates) { this.certificates = certificates; } CertFileTrustAnchorsProvider();  CertFileTrustAnchorsProvider(List<Path> certificates); List<Path> getCertificates(); void setCertificates(List<Path> certificates);  }
@Test void provide_test() throws Exception { target = new CertFileTrustAnchorsProvider(); Path path = Paths.get(ClassLoader.getSystemResource("com/webauthn4j/anchor/CertFileTrustAnchorsProviderTest/test.crt").toURI()); target.setCertificates(Collections.singletonList(path)); Map<AAGUID, Set<TrustAnchor>> trustAnchors = target.provide(); assertThat(trustAnchors.keySet()).containsExactly(AAGUID.NULL); assertThat(trustAnchors).isNotEmpty(); }