cal.setTimeInMillis(System.currentTimeMillis() - (7*24*60*60*1000));
tes.setEstimationDate(new Date(cal.getTimeInMillis()));
tes.setTask(task);
PmDeployment.instance().persist(tes, em, context);
Person person = new Person();
person.setFirstName("John");
person.setLastName("Doe");
person.setUserId("john");
person.setPassword("password");
PmDeployment.instance().persist(person, em, context);
TeamMember teamMember = new TeamMember();
teamMember.setRole("admin");
teamMember.setPerson(person);
teamMember.setTeam(team);
PmDeployment.instance().persist(teamMember, em, context);
person = new Person();
person.setFirstName("Jane");
person.setLastName("Doe");
person.setUserId("jane");
person.setPassword("password");
PmDeployment.instance().persist(person, em, context);
teamMember = new TeamMember();
teamMember.setRole("member");
teamMember.setPerson(person);
teamMember.setTeam(team);
PmDeployment.instance().persist(teamMember, em, context);
person = new Person();
person.setFirstName("Arnold");
person.setLastName("Schwarzenegger");
person.setUserId("arnold");
person.setPassword("password");
PmDeployment.instance().persist(person, em, context);
teamMember = new TeamMember();
teamMember.setRole("owner");
teamMember.setPerson(person);
teamMember.setTeam(team);
PmDeployment.instance().persist(teamMember, em, context);
person = new Person();
person.setFirstName("Demo");
person.setLastName("Demo");
person.setUserId("demo");
person.setPassword("");
PmDeployment.instance().persist(person, em, context);
teamMember = new TeamMember();
teamMember.setRole("owner");
teamMember.setPerson(person);