package com.mobcom.test;
import java.util.SortedMap;
import java.util.TreeMap;
import com.mobcom.amazon.URLBuilder;
public class URLBuilderTester {
/**
* @param args
*/
public static void main(String[] args){
URLBuilder builder = URLBuilder.getInstance();
SortedMap<String, String> params = new TreeMap<String, String>();
params.put("Operation", "ItemLookup");
params.put("IdType", "ISBN");
params.put("ItemId", "1935597140");
params.put("SearchIndex", "Books");
params.put("ResponseGroup", "ItemAttributes");
System.out.println(builder.getURL(params));
URLBuilder bild = URLBuilder.getInstance();
System.out.println(bild.getURL(new TreeMap<String, String>()));
}
}