@Test
public void testCmd() {

    String[][] commands = {
            {"nslookup unknown.com &", "nslookupunknown.com"},
            {"cat `whoami`", "catwhoami"},
            {"whoami > /var/www/static/whoami.txt", "whoami/var/www/static/whoami.txt"},
            {"c1 || c2# || c3 || *c4\\", "c1c2c3c4"},
            {"c1 &&", "c1"},
            {"c1 + > c2 [p1]%", "c1c2[p1]%"},
            {"c1 | ${c2}", "c1c2"},
    };
    for (String[] pair : commands) {
        assertEquals(pair[1], CliCommandExecutor.checkParameter(pair[0]));
    }
}