@Test
void buildFedIPMissingCertReferences() {

    final IdentityProvider identityProvider = new IdentityProvider();
    identityProvider.setType(FEDERATED);
    final FederatedIdentityProviderDetail identityProviderDetail = new FederatedIdentityProviderDetail();
    identityProvider.setIdentityProviderDetail(identityProviderDetail);
    identityProvider.setId(TEST_ID);
    final Bundle bundle = new Bundle(projectInfo);
    bundle.putAllIdentityProviders(new HashMap<String, IdentityProvider>() {{
        put("fail IDP", identityProvider);
    }});
    assertThrows(EntityBuilderException.class, () -> builder.build(bundle, BundleType.ENVIRONMENT, DocumentTools.INSTANCE.getDocumentBuilder().newDocument()));
}