@Test
void buildBindOnlyIPWithMissingDetails() {

    final Bundle bundle = new Bundle(projectInfo);
    final IdentityProvider identityProvider = new IdentityProvider();
    identityProvider.setType(BIND_ONLY_LDAP);
    identityProvider.setId(TEST_ID);
    //omit the serverUrls
    final BindOnlyLdapIdentityProviderDetail identityProviderDetail = new BindOnlyLdapIdentityProviderDetail();
    identityProviderDetail.setUseSslClientAuthentication(false);
    identityProviderDetail.setBindPatternPrefix("testpre");
    identityProviderDetail.setBindPatternSuffix("testsuf");
    identityProvider.setIdentityProviderDetail(identityProviderDetail);
    bundle.putAllIdentityProviders(new HashMap<String, IdentityProvider>() {{
        put("simple ldap config", identityProvider);
    }});
    assertThrows(EntityBuilderException.class, () -> builder.build(bundle, BundleType.ENVIRONMENT, DocumentTools.INSTANCE.getDocumentBuilder().newDocument()));
}