public class TestDictionary {
public static void main(String[] args)
throws Exception {
InputStream source = new FileInputStream("test.dictionary");
Dictionary dictionary = DictionaryParser.parseDictionary(source);
AccessRequest ar = new AccessRequest("UserName", "UserPassword");
ar.setDictionary(dictionary);
ar.addAttribute("WISPr-Location-ID", "LocationID");
ar.addAttribute(new IpAttribute(8, 1234567));
System.out.println(ar);