@Test
public void commands() throws Exception {

    Result pr = ShellCommandParser.parse("bibliography");
    assertEquals(0, pr.getRemainingArgs().length);
    assertEquals(BibliographyCommand.class, pr.getFirstCommand());
    assertEquals(BibliographyCommand.class, pr.getLastCommand());
    pr = ShellCommandParser.parse("  list  ");
    assertEquals(0, pr.getRemainingArgs().length);
    assertEquals(ListCommand.class, pr.getFirstCommand());
}