client.addTask( task, null, addTaskResponseHandler );
long taskId = addTaskResponseHandler.getTaskId();
Content content = new Content();
content.setContent( "['subject' : 'My Subject', 'body' : 'My Body']".getBytes() );
BlockingSetContentResponseHandler setContentResponseHandler = new BlockingSetContentResponseHandler();
client.setDocumentContent( taskId, content, setContentResponseHandler );
long contentId = setContentResponseHandler.getContentId();
BlockingGetContentResponseHandler getResponseHandler = new BlockingGetContentResponseHandler();
client.getContent( contentId, getResponseHandler );
content = getResponseHandler.getContent();
assertEquals( "['subject' : 'My Subject', 'body' : 'My Body']", new String( content.getContent() ) );