@Test
public void testFlowBuilderInboundParameter()
{
externalContext.getRequestMap().put("bean", new SimpleBean());
FlowBuilder flowBuilder = new FlowBuilderImpl();
flowBuilder.id("faces-flow1.xhtml", "flow1");
flowBuilder.inboundParameter("name1", "value1");
flowBuilder.inboundParameter("name2", "#{bean.value}");
flowBuilder.inboundParameter("name3",
application.getExpressionFactory().createValueExpression("value3", String.class));
Flow flow = flowBuilder.getFlow();
Assert.assertNotNull(flow);
Parameter param = flow.getInboundParameters().get("name1");
Assert.assertEquals("name1", param.getName());
Assert.assertEquals("value1", param.getValue().getValue(facesContext.getELContext()));