MockRenderedValueExpression ve = new MockRenderedValueExpression("#{component.id eq 'testId'}", Boolean.class, underTest, value);
underTest.setValueExpression("rendered", ve);
// simlulate that parent panel encodes children and is on the stack:
parent.pushComponentToEL(facesContext, null);
return parent;
}
}