### Question:
KeyConfig { public static KeyConfig create(Config config) throws PkiException { try { return fullBuilder().config(config).build(); } catch (ResourceException e) { throw new PkiException("Failed to load from config", e); } } private  KeyConfig(PrivateKey privateKey,
                      PublicKey publicKey,
                      X509Certificate publicCert,
                      Collection<X509Certificate> certChain,
                      Collection<X509Certificate> certificates); static KeyConfig create(Config config); static Builder fullBuilder(); static PemBuilder pemBuilder(); static KeystoreBuilder keystoreBuilder(); Optional<PublicKey> publicKey(); Optional<PrivateKey> privateKey(); Optional<X509Certificate> publicCert(); List<X509Certificate> certChain(); List<X509Certificate> certs();  }### Answer:
@Test void testConfigWrongPath() { assertThrows(PkiException.class, () -> KeyConfig.create(config.get("unit-7"))); }