JaxbI18NText text = new JaxbI18NText();
text.setId(2l);
text.setLanguage("nl-NL");
text.setText("Doei!");
names.add(text);
JaxbTaskData taskData = new JaxbTaskData();
serverTask.setJaxbTaskData(taskData);
taskData.setActualOwnerId("me");
taskData.setCreatedById("you");
taskData.setCreatedOn(new Date());
taskData.setDeploymentId("this");
taskData.setDocumentContentId(0l);
taskData.setDocumentType("this");
taskData.setFaultContentId(1l);
taskData.setFaultName("whoops");
taskData.setFaultType("that");
taskData.setOutputType("theirs");
taskData.setSkipable(true);
taskData.setWorkItemId(3l);
taskData.setProcessInstanceId(3l);
taskData.setOutputContentId(3l);
taskData.setParentId(3l);
taskData.setProcessSessionId(2);
String jsonTaskStr = objectMapper.writeValueAsString(serverTask);
logger.debug( jsonTaskStr );
assertFalse( "String contains 'realClass' attribute", jsonTaskStr.contains("realClass"));
Task clientTask = jsonProvider.deserialize(jsonTaskStr, Task.class);