@Test public void tokenizeSimpleParameterString()
{

    final String str1 = "-font Helvetica -pointsize 50";
    final String str2 = "   -font   Helvetica   -pointsize   50   ";
    
    List<String> expectedTokens = Arrays.asList(new String[] {"-font", "Helvetica", "-pointsize", "50"});
    
    ExecParameterTokenizer t = new ExecParameterTokenizer(str1);
    assertEquals("Wrong tokens", expectedTokens, t.getAllTokens());
    
    t = new ExecParameterTokenizer(str2);
    assertEquals("Wrong tokens", expectedTokens, t.getAllTokens());
}