client.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();
client.getContent(contentId, getContentResponseHandler);
ByteArrayInputStream bis = new ByteArrayInputStream(getContentResponseHandler.getContent().getContent());
ObjectInputStream in = new ObjectInputStream(bis);
Object data = in.readObject();
in.close();
assertEquals("This is the content", data);