assertNull(pp.getPreferencesValidator());
List prefs = pp.getPortletPreferences();
assertEquals(4, prefs.size());
PortletPreferenceDD pref1 = (PortletPreferenceDD)prefs.get(0);
assertEquals("noValues", pref1.getName());
assertNull(pref1.getValues());
PortletPreferenceDD pref2 = (PortletPreferenceDD)prefs.get(1);
assertEquals("oneEmptyValue", pref2.getName());
assertEquals(Arrays.asList(new String[] {""}), pref2.getValues());
PortletPreferenceDD pref3 = (PortletPreferenceDD)prefs.get(2);
assertEquals("oneValue", pref3.getName());
assertEquals(Arrays.asList(new String[] {"value1"}), pref3.getValues());
PortletPreferenceDD pref4 = (PortletPreferenceDD)prefs.get(3);
assertEquals("fourValues", pref4.getName());
assertEquals(Arrays.asList(new String[] {"value1", "", "value3", ""}), pref4.getValues());
assertNull(pd.getResourceBundle());
assertEquals(0, pd.getSecurityRoleRefs().size());
assertEquals(1, pd.getSupportedLocales().size());