private static final boolean TEST_ENABLED = true;
@Test(enabled=TEST_ENABLED)
public void testSimpleFlowTransitionMapChecking() {
FlowImpl flow = new FlowImpl(FLOW_TYPE_1);
FlowActivityImpl fa1 = new FlowActivityImpl().initInvisible(false);
FlowPropertyDefinitionImplementor definition = fa1.getFlowPropertyDefinition(FSFLOW_TRANSITIONS);
assertNull(definition);
flow.addActivity(fa1);
definition = fa1.getFlowPropertyDefinition(FSFLOW_TRANSITIONS);
assertNotNull(definition);
String returnToFlowLookupKey = null;
definition.setFlowPropertyValueProvider(new AddToMapFlowPropertyValueProvider<FlowPropertyProvider, String,FlowTransition>(new FlowTransition("foo", FLOW_TYPE_2, "foo", TransitionType.alternate, null)));
FlowManagement baseFlowManagement = getFlowManagement(flow);
FlowState flowState = baseFlowManagement.startFlowState(FLOW_TYPE_1, false, null, returnToFlowLookupKey);
Map<String, FlowTransition> propValue = flowState.getCurrentActivity().getProperty(FSFLOW_TRANSITIONS);
assertTrue( propValue.keySet().contains("foo"));