String task6ID = nextRandom();
PATask task6 = new PATask(task6ID, new URI("http://localhost/6"), "processID", "urn:completeSOAPAction", Utils.createXMLDocument());
task6.getUserOwners().add("intalio\\admin");
tms.create(task6);
tms.complete(task6ID);
PATask task7 = (PATask) tms.getTask(task6ID);
Assert.assertEquals(TaskState.COMPLETED, task7.getState());
tms.fail(task7.getID(), "code", "reason");