public void testFlowBuilderSwitch()
{
externalContext.getRequestMap().put("bean", new SimpleBean());
FlowBuilder flowBuilder = new FlowBuilderImpl();
flowBuilder.id("faces-flow1.xhtml", "flow1");
SwitchCaseBuilder switchCaseBuilder = flowBuilder.switchNode("switch1")
.markAsStartNode().defaultOutcome("#{bean.outcome1}");
switchCaseBuilder
.switchCase().condition("true").fromOutcome("case1");
switchCaseBuilder
.switchCase().condition("#{bean.checkCond}").fromOutcome("caseB");