@Test
public void alias() throws Exception {

    final File file = new File("target/clitest/alias.txt");
    file.getParentFile().mkdirs();
    final FileWriter w = new FileWriter(file);
    w.write("al=test");
    w.close();
    final String input = "al\n" + "exit";
    final ByteArrayOutputStream out = new ByteArrayOutputStream();
    newTestCli(input, out, file).run();
    assertEquals(
        "prompt$al\n" +
        "line1\n" +
        "line 2\n" +
        "end\n" +
        "\n" +
        "prompt$exit", portable(new String(out.toByteArray())));
}