String expected = IOUtils.toString(new FileInputStream("src/test/resources/Real1_expected_toString.txt"), UTF_8);
assertEquals(expected, getToStringOnRootElementWrapper("Real1_input.xml"));
}
private String getToStringOnRootElementWrapper(String inputFileName) throws IOException, JDOMException {
PluginParameters pluginParameters = new PluginParametersBuilder()
.setPomFile(null).setBackupInfo(false, ".bak")
.setEncoding("UTF-8")
.setFormatting("\r\n", true, true)
.setIndent(2, false)
.setSortOrder("default_0_4_0.xml", null)