String params = " view1:panel1:_component1 ";
Map<String, String> requestParamMap = new HashMap<String, String>();
requestParamMap.put(PartialViewContext.PARTIAL_EXECUTE_PARAM_NAME, params);
ContextTestRequestWrapper wrapper = new ContextTestRequestWrapper(request, requestParamMap);
FacesContext context = new FacesContextImpl(servletContext, wrapper, response);
PartialViewContext pprContext = context.getPartialViewContext();
assertTrue("Length must be one",pprContext.getExecuteIds().size() == 1);
assertTrue("Value match", pprContext.getExecuteIds().iterator().next().equals("view1:panel1:_component1"));
}