@Test(expected=IllegalStateException.class)
public void validateValueInvalidRegexSet() {

    // ACT
    UserProfileConfiguration.create()
            .addProfileProperty(ProfileProperty.with("x-rp-department", "department").validationRegex("***").build())
            .build();
}