assertNull(portletBean.getTestParam());
}
public void testMultipleInitParametersSet() throws Exception {
PortletContext portletContext = new MockPortletContext();
MockPortletConfig portletConfig = new MockPortletConfig(portletContext);
String testValue = "testValue";
String anotherValue = "anotherValue";
portletConfig.addInitParameter("testParam", testValue);
portletConfig.addInitParameter("anotherParam", anotherValue);
portletConfig.addInitParameter("unknownParam", "unknownValue");
TestPortletBean portletBean = new TestPortletBean();
assertNull(portletBean.getTestParam());
assertNull(portletBean.getAnotherParam());
portletBean.init(portletConfig);
assertNotNull(portletBean.getTestParam());