@Test
public void time() throws Exception {

    final String input = "time test\n" + "exit";
    final ByteArrayOutputStream out = new ByteArrayOutputStream();
    newTestCli(input, out, null).run();
    assertEquals(
        portable("prompt$time test\n" +
        "line1\n" +
        "line 2\n" +
        "end\n" +
        "\n" +
        "Time 0s Xms\n" +
        "prompt$exit"), portable(new String(out.toByteArray()).replaceAll("[0-9]+ms", "Xms")));
}