@Test
public void correctlyHandlesTheCaseWhenExposedParameterIsFirst() throws IOException {

    Map<String, String> firstStep = new HashMap<>();
    firstStep.put(EVENT, searchActionName);
    firstStep.put(aliasSearch, aliasSearchValue);
    TestScenarioSteps testScenarioSteps = new TestScenarioSteps();
    testScenarioSteps.add(firstStep);
    File outputFile = new File(outputFilename);
    Map<String, ApplicationActionConfiguration> actionConfigurationMap = createExposedParameterFirstMockConfiguration();
    StepsDumper stepsDumper = new DslStepsDumper(actionConfigurationMap);
    stepsDumper.dump(testScenarioSteps, outputFilename);
    List<String> lines = Files.readLines(outputFile, Charsets.UTF_8);
    assertEquals(1, lines.size());
    assertEquals("searchTerm: dress ", lines.get(0));
}