Contact contact = new Contact();
contact.setIdContact(TEST_ID_CONTACT);
contact.setFirstName(getName());
contactCtrl.create(contact);
//Action completed with a participant
Communication com1 = new Communication();
com1.setIdCommunication(TEST_ID_COMPLETED_WITH_CONTACT);
com1.setActionToBeConducted("Test already done");
com1.setDateOfCompletion(new Date());
com1.setTopic(getName());
List participants = new ArrayList();
participants.add(contact);
com1.setParticipants(participants);
comCtrl.create(com1);
contact.getParticipate().add(com1);
contactCtrl.update(contact);
//No action to complete
Communication com2 = new Communication();
com2.setIdCommunication(TEST_ID_NO_ACTION);
com2.setTopic(getName());
comCtrl.create(com2);
//Action to complete
Communication com3 = new Communication();
com3.setIdCommunication(TEST_ID_NOT_COMPLETED);
com3.setActionToBeConducted("Test to be done");
com3.setTopic(getName());
comCtrl.create(com3);
}