{
seq.bindAction(0, UTP1.RENDER_JOIN_POINT, new PortletRenderTestAction()
{
protected Response run(Portlet portlet, RenderRequest request, RenderResponse response, PortletTestContext context) throws IOException, PortletException
{
AbstractUniversalTestPortlet aport = (AbstractUniversalTestPortlet)portlet;
//we get resource and pass it to servlet
URL url = aport.getPortletContext().getResource("/simple_resource.txt");
assertNotNull(url);
aport.getPortletContext().setAttribute("resource", url);
//and we construct resource content and pass to servlet
InputStream is = aport.getPortletContext().getResourceAsStream("/simple_resource.txt");
assertNotNull(is);
byte[] byteArray = new byte[is.available()];
is.read(byteArray);
aport.getPortletContext().setAttribute("content", byteArray);
//then we dispatch to servlet
PortletRequestDispatcher dispatcher = aport.getPortletContext().getNamedDispatcher("UniversalServletA");
assertNotNull(dispatcher);
dispatcher.include(request, response);
Object o = (Boolean)UTP1.local.get();
//assert out assertion was correct in Servlet