void () { String[] parameters = {"simpleParam", "param with spaces", "withQuote=\"", "param=\"complex quoted\"", "C:\\\"q\"", "C:\\w s\\"}; ParametersList parametersList = new ParametersList(); parametersList.addAll(parameters); String joined = parametersList.getParametersString(); assertEquals("simpleParam \"param with spaces\" withQuote=\\\" \"param=\\\"complex quoted\\\"\" C:\\\\\"q\\\" \"C:\\w s\"\\", joined); checkTokenizer(joined, parameters); }