@Test
public void testEscapeString() {

    System.out.println("escapeString");
    String[] cases = {
        "aSingleToken",
        "a b c",
        "an's g'ri # quotation test",
        "Shell instance = new Shell(new ShellTest(), System.out",
        "dir \"E:\\ASG\\!dynamic\\projects\" \t-l 3492.9  "
    };
    for (int i = 0; i < cases.length; i++) {
        String escaped = Token.escapeString(cases[i]);
        List<Token> result = Token.tokenize(escaped);
        System.out.println("case: " + cases[i]);
        System.out.println("escaped: " + escaped);
        assertEquals(1, result.size());
        assertEquals(cases[i], result.get(0).getString());
    }
}