@Test
public void oneLineNoEOLTest() throws IOException {

    RemoveLine removeLine = new RemoveLine("(.*foo.*)").relative("/src/main/resources/application.properties").setFirstOnly(false);
    TOExecutionResult executionResult = removeLine.execution(transformedAppFolder, transformationContext);
    Assert.assertEquals(executionResult.getType(), TOExecutionResult.Type.SUCCESS);
    assertChangedFile("/src/main/resources/application.properties");
    assertLineCount("/src/main/resources/application.properties", -2);
    Properties properties = getProperties("/src/main/resources/application.properties");
    Assert.assertEquals(properties.size(), 1);
    Assert.assertEquals(properties.getProperty("bar"), "barv");
    InsertLine insertLine = new InsertLine("p1=p1v", "(.*barv.*)").relative("/src/main/resources/application.properties");
    executionResult = insertLine.execution(transformedAppFolder, transformationContext);
    Assert.assertEquals(executionResult.getType(), TOExecutionResult.Type.SUCCESS);
    assertChangedFile("/src/main/resources/application.properties");
    assertLineCount("/src/main/resources/application.properties", -1);
    properties = getProperties("/src/main/resources/application.properties");
    Assert.assertEquals(properties.size(), 2);
    Assert.assertEquals(properties.getProperty("bar"), "barv");
    Assert.assertEquals(properties.getProperty("p1"), "p1v");
}