PortletApplicationContext implements ApplicationContext { public Object getContext() { return 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 testGetContext() { replay(portletContext); assertEquals(portletContext, context.getContext()); verify(portletContext); }