String privatePropertyForSecondFlow = "privateForSecond";
String globalSettingForSecondFlowPrivateProperty = "global_for_privateForSecond";
FlowPropertyDefinitionImpl flowPropertyDefinition_secondflow_prop0 = new FlowPropertyDefinitionImpl(privatePropertyForSecondFlow, Boolean.class).initAccess(flowLocal, PropertyUsage.internalState);
// first flow doesn't understand this property but it sets it for the second flow to use.
String opaqueSecondFlowProperty = "secondFlowProperty";
flowActivity2.addPropertyDefinitions(
flowPropertyDefinition_secondflow_prop0,
new FlowPropertyDefinitionImpl(opaqueSecondFlowProperty, String.class).initPropertyScope(flowLocal).initPropertyUsage(PropertyUsage.io)
);
flowTestingUtils.addFlowDefinition("second", flowActivity2);
FlowManagement flowManagement = flowTestingUtils.getFlowManagement();