@Test
public void testIndent() throws Exception {

    // checks a Tee can be an initial Step
    GauloisPipe piper = new GauloisPipe(configFactory);
    ConfigUtil cu = new ConfigUtil(configFactory.getConfiguration(), piper.getUriResolver(), "./src/test/resources/outputParams.xml");
    Config config = cu.buildConfig(emptyInputParams);
    config.verify();
    piper.setConfig(config);
    piper.setInstanceName("OUTPUT_PARAMS");
    piper.launch();
    File expect = new File("./target/generated-test-files/source-output-indented.xml");
    assertTrue("The file target/generated-test-files/source-output-indented.xml does not exists", expect.exists());
    try (BufferedReader br = new BufferedReader(new FileReader(expect))) {
        String line = br.readLine();
        assertTrue("output is not ISO-8859-1 encoded", line.contains("ISO-8859-1"));
        assertTrue("output is not indented (1)", !line.contains("<root>"));
        line=br.readLine();
        assertEquals("output is not indented (2)", "<root>",line);
        line=br.readLine();
        assertTrue("output is not indented (3)", line.startsWith(" "));
        assertTrue("CDATA is not set in <information/>",line.contains("<![CDATA["));
        assertTrue("CDATA is not set in <information/>",line.contains("]]>"));
        line=br.readLine();
        assertEquals("problen in indentation","</root>",line);
    }
}