### Question:
UserProfileBuiltInParameterProvider implements BuiltInParameterProvider, Serializable { protected Object[] makeParameter(String name, Class<?> type, Object value) { if (value == null && DEFAULT_VALUES.containsKey(type)) { value = DEFAULT_VALUES.get(type); } return new Object[]{JRQueryExecuterAdapter.makeParameter(name, type), value}; } 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 makeParameter_Any_passed() { String name = "name"; String value = "value"; Class<String> type = String.class; Object[] parameter = userProfileBuiltInParameterProvider.makeParameter(name, type, value); JRParameter jrParameter = (JRParameter) parameter[0]; assertEquals(parameter.length, 2); assertEquals(jrParameter.getName(), name); assertEquals(jrParameter.getValueClass(), type); assertEquals(parameter[1], value); }