@Test public void tokenizeParameterStringWithQuotedParamContainingQuotes()
{

    final String str1 = "-font Helvetica -pointsize 50 -draw \"gravity south fill black text 0,12 'CopyRight'\"";
    final String str2 = "-font Helvetica -pointsize 50 -draw 'gravity south fill black text 0,12 \"CopyRight\"'";
    
    List<String> expectedTokens1 = Arrays.asList(new String[] {"-font", "Helvetica", "-pointsize", "50",
                                                               "-draw", "gravity south fill black text 0,12 'CopyRight'"});
    List<String> expectedTokens2 = Arrays.asList(new String[] {"-font", "Helvetica", "-pointsize", "50",
                                                               "-draw", "gravity south fill black text 0,12 \"CopyRight\""});
    ExecParameterTokenizer t = new ExecParameterTokenizer(str1);
    assertEquals("Wrong tokens", expectedTokens1, t.getAllTokens());
    t = new ExecParameterTokenizer(str2);
    assertEquals("Wrong tokens", expectedTokens2, t.getAllTokens());
}