/** Test for third service option. Creates and gets a test task. */
  @Test
  public void testCreateTaskWithService3() {
    String result = null;

    // Service 3
    String[] args1 = {testXMLTask, "3"};
    invokeServiceMethod("createTask", args1);
    String[] args2 = {"TestAttendee", "3"};
    result = invokeServiceMethod("getAttendantTasks", args2);
    TaskList taskList = JaxbUtils.xmlToTaskList(result);
    assertTrue(taskList.list.contains(JaxbUtils.xmlToTask(testXMLTask)));
  }
  /** Test for third service option. Creates and gets a test task. */
  @Test
  public void testCreateTaskWithService3HashCheck() {
    String result = null;
    boolean pass = false;
    Task testTask = JaxbUtils.xmlToTask(testXMLTask);

    // Service 3
    String[] args1 = {testXMLTask, "3"};
    invokeServiceMethod("createTask", args1);
    String[] args2 = {"TestAttendee", "3"};
    result = invokeServiceMethod("getAttendantTasks", args2);
    TaskList taskList = JaxbUtils.xmlToTaskList(result);
    Iterator<Task> it = taskList.list.iterator();
    Task task = null;
    while (it.hasNext()) {
      task = it.next();
      if (task.equals(testTask)) {
        pass = true;
        break;
      }
    }
    assertTrue(pass);
  }