@Test
public void printLoadFlowResultTest() throws IOException {

    LoadFlowResult result = new LoadFlowResultImpl(true, Collections.emptyMap(), "",
            Collections.singletonList(new LoadFlowResultImpl.ComponentResultImpl(0, LoadFlowResult.ComponentResult.Status.CONVERGED, 8, "mySlack", 0.01)));
    try (StringWriter writer = new StringWriter()) {
        RunLoadFlowTool.printLoadFlowResult(result, writer, new AsciiTableFormatterFactory(), new TableFormatterConfig(Locale.US, "inv"));
        writer.flush();
        compareTxt(getClass().getResourceAsStream("/LoadFlowResultResult.txt"), writer.toString());
    }
}