expect(flow.getFlowState()).andReturn(flowState).anyTimes();
expect(flow.getFlowPropertyDefinition(FlowConstants.FAINVISIBLE)).andReturn(new FlowPropertyDefinitionImpl(FlowConstants.FAINVISIBLE, boolean.class)).anyTimes();
expect(flow.getFlowPropertyDefinition(FlowConstants.FSAUTO_COMPLETE)).andReturn(new FlowPropertyDefinitionImpl(FlowConstants.FSAUTO_COMPLETE, boolean.class)).anyTimes();
obj.setFlow(flow);
EasyMock.replay(flow, flowState);
assertTrue(obj.activate(FlowStepDirection.inPlace));
obj.setPageName("foo");
assertFalse(obj.activate(FlowStepDirection.inPlace));
obj.setPageName(null);
assertTrue(obj.activate(FlowStepDirection.inPlace));
obj.setComponentName("foo");