getClient().getTask(taskSummary.getId(), getTaskResponseHandler);
Task task = getTaskResponseHandler.getTask();
assertEquals(AccessType.Inline, task.getTaskData().getDocumentAccessType());
long contentId = task.getTaskData().getDocumentContentId();
assertTrue(contentId != -1);
BlockingGetContentResponseHandler getContentResponseHandler = new BlockingGetContentResponseHandler();
getClient().getContent(contentId, getContentResponseHandler);
ByteArrayInputStream bis = new ByteArrayInputStream(getContentResponseHandler.getContent().getContent());
ObjectInputStream in = new ObjectInputStream(bis);
Map<String, Object> data = (Map<String, Object>) in.readObject();
in.close();
//Checking that the input parameters are being copied automatically if the Content Element doesn't exist
assertEquals("MyObjectValue", ((MyObject)data.get("MyObject")).getValue());