@Test
public void jsonTaskStringTest() throws Exception {
objectMapper.configure(SerializationConfig.Feature.INDENT_OUTPUT, true);
JaxbTask serverTask = new JaxbTask();
List<I18NText> names = new ArrayList<I18NText>();
serverTask.setPriority(2);
serverTask.setNames(names);
serverTask.setId(6l);
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);