PortletApplicationContext implements ApplicationContext { public PortletContext getPortletContext() { return (this.context); } PortletApplicationContext(PortletContext context); Object getContext(); void initialize(PortletContext context); PortletContext getPortletContext(); Map<String, Object> getApplicationScope(); Map<String, String> getInitParams(); ApplicationResource getResource(String localePath); ApplicationResource getResource(ApplicationResource base, Locale locale); Collection<ApplicationResource> getResources(String path);  }
@Test public void testGetPortletContext() { replay(portletContext); assertEquals(portletContext, context.getPortletContext()); verify(portletContext); }