@Test
public void testFlowBuilderView()
{
FlowBuilder flowBuilder = new FlowBuilderImpl();
flowBuilder.id("faces-flow1.xhtml", "flow1");
flowBuilder.viewNode("x", "x.xhtml");
flowBuilder.viewNode("y", "y.xhtml").markAsStartNode();
Flow flow = flowBuilder.getFlow();
Assert.assertNotNull(flow);
Assert.assertEquals("y", flow.getStartNodeId());