UnixProcessing { public String processText(String text, String commandLine) { final String[] split = commandLine.split("\\|"); final Unix4jCommandBuilder builder = buildUnixCli(Unix4j.fromString(text), split, 0); return builder.toStringResult(); }  String processText(String text, String commandLine);  }
@Test(dataProvider = "processText") public void testProcessText(String text, String cli, String expected) { final String actual = new UnixProcessing().processText(text, cli); assertEquals(actual, expected); }