@Test
public void testCommand() {

    String cmd = FileUtils.isOsWindows() ? "print \"hello\"" : "ls";
    Command command = new Command(false, null, null, "target/command.log", new File("src"), cmd, "-al");
    command.start();
    int exitCode = command.waitSync();
    assertEquals(exitCode, 0);
}