public class PortalPreferenceFormTest {
private Map<String, PortalPreference> preferenceMap = new HashMap<String, PortalPreference>();
@Before
public void setUp() throws Exception {
PortalPreference titlePref = new PortalPreferenceImpl(TITLE_SUFFIX, "Test portal");
preferenceMap.put(TITLE_SUFFIX, titlePref);
PortalPreference pageSizePref = new PortalPreferenceImpl(PAGE_SIZE, "20");
preferenceMap.put(PAGE_SIZE, pageSizePref);
PortalPreference javaScriptDebugMode = new PortalPreferenceImpl(JAVASCRIPT_DEBUG_MODE, "0");
preferenceMap.put(JAVASCRIPT_DEBUG_MODE, javaScriptDebugMode);
PortalPreference initialWidgetStatus = new PortalPreferenceImpl(INITIAL_WIDGET_STATUS, "PUBLISHED");
preferenceMap.put(INITIAL_WIDGET_STATUS, initialWidgetStatus);
}