WSHTClient { XMLSetOutputDocument createSetOutputMessage(String taskId, XmlObject xmlPayload) { XMLSetOutputDocument setOutputDoc = XMLSetOutputDocument.Factory .newInstance(); SetOutput setOutput = setOutputDoc.addNewSetOutput(); setOutput.setIdentifier(taskId); XmlObject taskData = setOutput.addNewTaskData(); taskData.set(xmlPayload); return setOutputDoc; } WSHTClient(URL endpoint, String username, String password); GetMyTasksResponse getReadyTaskList(); GetMyTasksResponse getTaskList(String taskName,
			XMLTStatus.Enum[] state); GetMyTasksResponse getReadyTaskList(String taskName); void completeTaskWithOutput(String taskId, XmlObject completeData); GetInputResponse getInput(String taskId);  }
@Test public void testCreateSetOutputMessage() throws Exception { XmlObject payload = XmlObject.Factory.parse("<a/>"); XMLSetOutputDocument output = client.createSetOutputMessage("taskId", payload); StringWriter xmlAsString = new StringWriter(); output.save(xmlAsString); assertFalse(xmlAsString.toString().contains("xsi:type")); }