bundles/ca.uqam.tool.vivo-proxy/src_custom/main/java/ca/uqam/tool/vivoproxy/pattern/command/Main.java
public static void main(String[] args) throws IOException {
//        Person person = new Person();
//        String username = LOGIN.getUserName();
//        String password = LOGIN.getPasswd();
//        String firstName = "Pierre1";
//        String lastName = "Jacques2";
//        String middleName = "Jean2";
//        String organisationName = "Collège du vieux Montréal";
//        person.setFirstName(firstName);
//        person.setMiddleName(middleName);
//        person.setLastName(lastName);
//        person.setPersonType(VIVO.FacultyMember.toString());
//        CommandFactory cf = CommandFactory.getInstance(); 
//        CommandInvoker invoker = new CommandInvoker();
//        Command loginCommand = cf.createLogin(username, password);
//        Command addPersonCommand = cf.createAddPerson(person);
//        invoker.register(loginCommand);
//        String U_Title = "Université du Québec à Montréal";
//        invoker.register(cf.createAddPerson(firstName, "1", lastName, VIVO.GraduateStudent.getURI()));
 //       invoker.register(cf.createOrganization("Université du Québec à Montréal", VIVO.University.getURI()));
        PositionOfPerson pop = new PositionOfPerson();;
        pop.setOrganisationIRI("http://localhost:8080/vivo/individual/n7843");
  //      pop.setVivoOrganisationTypeIRI(VIVO.University.getURI());
        pop.setPersonIRI("http://localhost:8080/vivo/individual/n492");
 //       pop.setPositionTitleLabel("Professeur");
   //     pop.setPositionTypeIRI(VIVO.FacultyPosition.getURI());
   //     pop.setOrganisationLabel(U_Title);
//		invoker.register(cf.createPositionFor(pop ));
        		
        
//        invoker.register(cf.createAddPerson(firstName, "2", lastName, VIVO.EmeritusProfessor.getURI()));
//        invoker.register(cf.createAddPerson(firstName, "3", lastName, VIVO.Librarian.getURI()));
//        invoker.register(cf.createAddPerson(firstName, "4", lastName, VIVO.FacultyMember.getURI()));
//        invoker.register(cf.createAddPerson(firstName, "5", lastName, VIVO.Student.getURI()));
//        invoker.register(cf.createAddPerson(firstName, "6", lastName, VIVO.UndergraduateStudent.getURI()));
//        invoker.register(cf.createAddPerson(firstName, "7", lastName, VIVO.GraduateStudent.getURI()));
//        invoker.register(cf.createAddPerson(firstName, "8", lastName, VIVO.GraduateStudent.getURI()));
//        invoker.register(cf.createAddPerson(firstName, "9", lastName, VIVO.GraduateStudent.getURI()));
//        invoker.register(cf.createAddPerson(firstName, "10", lastName, VIVO.GraduateStudent.getURI()));
//        invoker.register(cf.createAddPerson(firstName, "11", lastName, VIVO.GraduateStudent.getURI()));
//        invoker.register(cf.createAddPerson(firstName, "12", lastName, VIVO.GraduateStudent.getURI()));
//        invoker.register(cf.createAddPerson(firstName, "13", lastName, VIVO.GraduateStudent.getURI()));
//        invoker.register(cf.createAddPerson(firstName, "14", lastName, VIVO.GraduateStudent.getURI()));
 //      invoker.register(cf.createLogout());
   //     invoker.execute();

//        CommandSession vivoSession = new CommandSession();
//        invoker.setSession(vivoSession);
//        Command addPersonCommand = cf.createAddPerson(firstName, "2", lastName, VIVO.GraduateStudent.getURI());
 //       Command addMichelCommand = cf.createAddPerson("Michel", "2", "Héon", VIVO.GraduateStudent.getURI());
 //       Command addOrganizationCommand = cf.createOrganization(organisationName, VivoReceiver.VIVO_COLLEGE);
 //       Command addMemberOfCommand = cf.createAddMemberOf("n4851", "n868", "Professeur",  "2001", "2021", VivoReceiver.VIVO_COLLEGE);
//        invoker.execute();
//        invoker.execute(addPersonCommand);
//        invoker.execute(addMichelCommand);
//        invoker.execute(addOrganizationCommand);
        
        LOGGER.info("Done!");
    }
/**
     * Main class for testing 
     * @param args
     * @throws IOException 
     */
Main class for testing
@param args
@throws IOException
Main class for testing @param args @throws IOException
public static void main(String[] args) throws IOException {
        PositionOfPerson pop = new PositionOfPerson();;
        pop.setOrganisationIRI("http://localhost:8080/vivo/individual/n7843");
        pop.setPersonIRI("http://localhost:8080/vivo/individual/n492");
        LOGGER.info("Done!");
    }
public static void main ( String [ ] args ) throws IOException { PositionOfPerson pop = new PositionOfPerson ( ) ; ; pop . setOrganisationIRI ( "http://localhost:8080/vivo/individual/n7843" ) ; pop . setPersonIRI ( "http://localhost:8080/vivo/individual/n492" ) ; LOGGER . info ( "Done!" ) ; }
Main class for testing
 @param args
 @throws IOException
Main class for testing @param args @throws IOException
//        Person person = new Person(); //        String username = LOGIN.getUserName(); //        String password = LOGIN.getPasswd(); //        String firstName = "Pierre1"; //        String lastName = "Jacques2"; //        String middleName = "Jean2"; //        String organisationName = "Collège du vieux Montréal"; //        person.setFirstName(firstName); //        person.setMiddleName(middleName); //        person.setLastName(lastName); //        person.setPersonType(VIVO.FacultyMember.toString()); //        CommandFactory cf = CommandFactory.getInstance();  //        CommandInvoker invoker = new CommandInvoker(); //        Command loginCommand = cf.createLogin(username, password); //        Command addPersonCommand = cf.createAddPerson(person); //        invoker.register(loginCommand); //        String U_Title = "Université du Québec à Montréal"; //        invoker.register(cf.createAddPerson(firstName, "1", lastName, VIVO.GraduateStudent.getURI())); //       invoker.register(cf.createOrganization("Université du Québec à Montréal", VIVO.University.getURI())); //      pop.setVivoOrganisationTypeIRI(VIVO.University.getURI()); //       pop.setPositionTitleLabel("Professeur"); //     pop.setPositionTypeIRI(VIVO.FacultyPosition.getURI()); //     pop.setOrganisationLabel(U_Title); //		invoker.register(cf.createPositionFor(pop )); //        invoker.register(cf.createAddPerson(firstName, "2", lastName, VIVO.EmeritusProfessor.getURI())); //        invoker.register(cf.createAddPerson(firstName, "3", lastName, VIVO.Librarian.getURI())); //        invoker.register(cf.createAddPerson(firstName, "4", lastName, VIVO.FacultyMember.getURI())); //        invoker.register(cf.createAddPerson(firstName, "5", lastName, VIVO.Student.getURI())); //        invoker.register(cf.createAddPerson(firstName, "6", lastName, VIVO.UndergraduateStudent.getURI())); //        invoker.register(cf.createAddPerson(firstName, "7", lastName, VIVO.GraduateStudent.getURI())); //        invoker.register(cf.createAddPerson(firstName, "8", lastName, VIVO.GraduateStudent.getURI())); //        invoker.register(cf.createAddPerson(firstName, "9", lastName, VIVO.GraduateStudent.getURI())); //        invoker.register(cf.createAddPerson(firstName, "10", lastName, VIVO.GraduateStudent.getURI())); //        invoker.register(cf.createAddPerson(firstName, "11", lastName, VIVO.GraduateStudent.getURI())); //        invoker.register(cf.createAddPerson(firstName, "12", lastName, VIVO.GraduateStudent.getURI())); //        invoker.register(cf.createAddPerson(firstName, "13", lastName, VIVO.GraduateStudent.getURI())); //        invoker.register(cf.createAddPerson(firstName, "14", lastName, VIVO.GraduateStudent.getURI())); //      invoker.register(cf.createLogout()); //     invoker.execute(); //        CommandSession vivoSession = new CommandSession(); //        invoker.setSession(vivoSession); //        Command addPersonCommand = cf.createAddPerson(firstName, "2", lastName, VIVO.GraduateStudent.getURI()); //       Command addMichelCommand = cf.createAddPerson("Michel", "2", "Héon", VIVO.GraduateStudent.getURI()); //       Command addOrganizationCommand = cf.createOrganization(organisationName, VivoReceiver.VIVO_COLLEGE); //       Command addMemberOfCommand = cf.createAddMemberOf("n4851", "n868", "Professeur",  "2001", "2021", VivoReceiver.VIVO_COLLEGE); //        invoker.execute(); //        invoker.execute(addPersonCommand); //        invoker.execute(addMichelCommand); //        invoker.execute(addOrganizationCommand);