@Test
public void incomplete() throws Exception {

    Result pr = ShellCommandParser.parse("");
    assertEquals(1, pr.getRemainingArgs().length);
    assertEquals("", pr.getRemainingArgs()[0]);
    assertNull(pr.getFirstCommand());
    assertNull(pr.getLastCommand());
    pr = ShellCommandParser.parse("bibl");
    assertEquals(1, pr.getRemainingArgs().length);
    assertEquals("bibl", pr.getRemainingArgs()[0]);
    assertNull(pr.getFirstCommand());
    assertNull(pr.getLastCommand());
    pr = ShellCommandParser.parse("get s");
    assertEquals(1, pr.getRemainingArgs().length);
    assertEquals("s", pr.getRemainingArgs()[0]);
    assertEquals(ShellGetCommand.class, pr.getFirstCommand());
    assertEquals(ShellGetCommand.class, pr.getLastCommand());
}