private static void testListReader(String listWithBrackets) {
		System.out.println("Parsing list:\n"+listWithBrackets);
		List<DaTextVariable> l = ListHandler.parseListString(listWithBrackets);
		
	/*	boolean first = true;
		StringBuilder postProcessed = new StringBuilder();
		postProcessed.append("[");
		for(DaTextVariable v : l){
			if(!first){
				postProcessed.append(", ");
			}
			postProcessed.append(v.asText());
			first = false;
		}
		postProcessed.append("]\n");
		System.out.println("parsed result:\n"+postProcessed.toString());*/
		String output = ListHandler.listToString(l);//postProcessed.toString();
		System.out.println("parsed result:\n");//+output);
		for(int i = 0; i < l.size(); i++){
			System.out.println("<"+i+">\t"+l.get(i).asText());
		}
		List<DaTextVariable> l2 = ListHandler.parseListString(output);
		
		boolean theSame =(l.size() == l2.size());
		if(!theSame){
			System.out.println("Length mismatch: "+l.size() + " != " + l2.size());
		}
		for(int i = 0; i < l.size() && i < l2.size(); i++){
			theSame = theSame && l.get(i).asText().equals(l2.get(i).asText());
			if((l.get(i).asText().equals(l2.get(i).asText())) == false){
				System.out.println("mismatched list entry: '" + l.get(i).asText() + "' != '"+l2.get(i).asText()+"'");
			}
		}
		theSame = theSame && (ListHandler.listToString(l).equals(ListHandler.listToString(l2)));
		System.out.println("Test result:"+theSame);
	}