### Question:
UserProfileBuiltInParameterProvider implements BuiltInParameterProvider, Serializable { public List<Object[]> getParameters(ExecutionContext context, List jrParameters, Map parameters) { List<Object[]> userProfileParameters = new ArrayList<Object[]>(); for (String parameterName : STANDARD_PARAMETERS) { Object[] result = getParameter(context, jrParameters, parameters, parameterName); if (result != null) { userProfileParameters.add(result); } } return userProfileParameters; } 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 getParameters_StandardParameters_passed() { user.setUsername("username"); List<Object[]> parameters = userProfileBuiltInParameterProvider.getParameters(null, null, null); assertEquals(user, parameters.get(0)[1]); assertEquals(user.getUsername(), parameters.get(1)[1]); }