@Test
void buildUnsupportedIDP() {

    final Bundle bundle = new Bundle(projectInfo);
    final IdentityProvider identityProvider = new IdentityProvider();
    identityProvider.setId(TEST_ID);
    identityProvider.setType(IdentityProviderType.INTERNAL);
    bundle.putAllIdentityProviders(new HashMap<String, IdentityProvider>() {{
        put("unsupported idp", identityProvider);
    }});
    final List<Entity> identityProviderEntities = builder.build(bundle, BundleType.ENVIRONMENT, DocumentTools.INSTANCE.getDocumentBuilder().newDocument());
    assertEquals(1, identityProviderEntities.size());
    final Entity identityProviderEntity = identityProviderEntities.get(0);
    assertEquals("ID_PROVIDER_CONFIG", identityProviderEntity.getType());
    assertEquals(NEW_OR_EXISTING, identityProviderEntity.getMappingAction());
    assertTrue(Boolean.valueOf(String.valueOf(identityProviderEntity.getMappingProperties().get(FAIL_ON_NEW))));
}