UserProfileConfiguration { public static UserProfileConfigurationBuilder create() { return new UserProfileConfigurationBuilder(); } private  UserProfileConfiguration(UserProfileConfigurationBuilder arguments); static UserProfileConfigurationBuilder create(); Map<String, ProfileProperty> getProfileProperties(); boolean isAllowedProfileProperty(String fieldName); boolean doesUrlMatchTheProfileUriPattern(String url); String extractUserIdFromProfileUri(String url); String getRoleProfilesRoot(); String getRolePattern();  }
@Test(expected=IllegalStateException.class) public void validateValueInvalidRegexSet() { UserProfileConfiguration.create() .addProfileProperty(ProfileProperty.with("x-rp-department", "department").validationRegex("***").build()) .build(); }