List customPortletModes = dd.getCustomPortletModes();
assertEquals(2, customPortletModes.size());
CustomPortletModeDD cpm1 = (CustomPortletModeDD)customPortletModes.get(0);
assertEquals("customMode", cpm1.getPortletMode());
assertEquals(1, cpm1.getDescriptions().size());
CustomPortletModeDD cpm2 = (CustomPortletModeDD)customPortletModes.get(1);
assertEquals("customMode2", cpm2.getPortletMode());
assertEquals(1, cpm2.getDescriptions().size());
assertEquals(2, dd.getCustomWindowStates().size());
assertEquals(1, dd.getUserAttributes().size());
assertEquals(1, dd.getSecurityConstraints().size());