### Question:
UserProfileBuiltInParameterProvider implements BuiltInParameterProvider, Serializable { protected Collection<ProfileAttribute> getProfileAttributes(ProfileAttributeCategory category) { if (category == ProfileAttributeCategory.HIERARCHICAL || profileAttributeCategories.contains(category)) { return profileAttributeService. getCurrentUserProfileAttributes(ExecutionContextImpl.getRuntimeExecutionContext(), category); } return new ArrayList<ProfileAttribute>(); } UserProfileBuiltInParameterProvider(); void setProfileAttributeService(ProfileAttributeService profileAttributeService); void setProfileAttributeCategories(List<ProfileAttributeCategory> profileAttributeCategories); void init(); List<Object[]> getParameters(ExecutionContext context, List jrParameters, Map parameters); Object[] getParameter(ExecutionContext context, List jrParameters, Map parameters, String name); static final String[] STANDARD_PARAMETERS; static final String ATTRIBUTE_DELIMITER; }### Answer:
@Test public void getProfileAttributes_hasUserCategory_passed() { Collection<ProfileAttribute> profileAttributes = userProfileBuiltInParameterProvider .getProfileAttributes(ProfileAttributeCategory.USER); assertEquals(profileAttributes, userProfileAttributes); }
@Test public void getProfileAttributes_hasHierarchicalCategory_passed() { Collection<ProfileAttribute> profileAttributes = userProfileBuiltInParameterProvider .getProfileAttributes(ProfileAttributeCategory.HIERARCHICAL); assertEquals(profileAttributes, allProfileAttributes); }