CmdLineArgs cl = new CmdLineArgs(args) ;
ArgDecl argA = new ArgDecl(true, "-arg") ;
cl.add(argA) ;
ArgDecl argV = new ArgDecl(false, "-v") ;
cl.add(argV) ;
cl.process() ;
assertTrue("No -arg= argument found" , cl.contains(argA) ) ;
Iterator<String> iter = cl.getValues("arg").iterator() ;
assertEquals("Argument 1", iter.next() , "V1") ;
assertEquals("Argument 2", iter.next() , "V2") ;