public void testRenderButtonWithValueBinding() throws IOException
{
ValueBinding vb = facesContext.getApplication().createValueBinding(
"#{ bean.name }");
Bean bean = new Bean();
bean.setName("Matthias");
facesContext.getExternalContext().getRequestMap().put("bean", bean);
assertEquals("Matthias", vb.getValue(facesContext).toString());
vb = facesContext.getApplication().createValueBinding(
"#{requestScope['bean']}");
Bean copy = (Bean) vb.getValue(facesContext);
assertNotNull(copy);
assertTrue(bean == copy);
facesContext.getExternalContext().getRequestMap().put(
"org.apache.shale.bean", bean);