@Test
public void noArgsPrintsMainHelp() throws Exception {

    Cli cli = new Cli("mytest");
    PrintStream out = System.out;
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    PrintStream printStream = new PrintStream(outputStream);
    System.setOut(printStream);
    cli.run(new String[]{});
    System.setOut(out);
    String help = outputStream.toString("UTF-8");
    assertThat(help, containsString("mytest"));
}