@Test
void buildTrustedCertFromNonExistentFile() {

    final TrustedCertEntityBuilder builder = new TrustedCertEntityBuilder(new IdGenerator(), null, certFact);
    final Bundle bundle = new Bundle();
    final TrustedCert trustedCert = new TrustedCert(ImmutableMap.of(VERIFY_HOSTNAME, true), null);
    bundle.putAllTrustedCerts(ImmutableMap.of(CERT_NAME, trustedCert));
    // No certs to load from
    assertThrows(EntityBuilderException.class, () -> builder.build(bundle, EntityBuilder.BundleType.ENVIRONMENT, DocumentTools.INSTANCE.getDocumentBuilder().newDocument()));
}