public static void activateParams( VariableSpace childVariableSpace, NamedParams childNamedParams, VariableSpace parent, String[] listParameters,
                                     String[] mappingVariables, String[] inputFields ) {
    activateParams(  childVariableSpace,  childNamedParams,  parent, listParameters, mappingVariables,  inputFields, true );
  }
@Test
  public void activateParamsWithTruePassParametersFlagTest() throws Exception {
    String childParam = "childParam";
    String childValue = "childValue";
    String paramOverwrite = "paramOverwrite";
    String parentValue = "parentValue";
    String stepValue = "stepValue";
    String parentAndChildParameter = "parentAndChildParameter";

    VariableSpace parent = new Variables();
    parent.setVariable( paramOverwrite, parentValue );
    parent.setVariable( parentAndChildParameter, parentValue );

    TransMeta childVariableSpace = new TransMeta();
    childVariableSpace.addParameterDefinition( childParam, "", "" );
    childVariableSpace.setParameterValue( childParam, childValue );
    childVariableSpace.addParameterDefinition( parentAndChildParameter, "", "" );
    childVariableSpace.setParameterValue( parentAndChildParameter, childValue );

    String[] parameters = childVariableSpace.listParameters();

    StepWithMappingMeta.activateParams( childVariableSpace, childVariableSpace, parent,
      parameters, new String[] { childParam, paramOverwrite }, new String[] { childValue, stepValue }, true );

    //childVariableSpace.setVariable( parentAndChildParameter, parentValue);

    Assert.assertEquals( childValue, childVariableSpace.getVariable( childParam ) );
    // the step parameter prevails
    Assert.assertEquals( stepValue, childVariableSpace.getVariable( paramOverwrite ) );

    Assert.assertEquals( parentValue, childVariableSpace.getVariable( parentAndChildParameter ) );
  }