public void testUploadToken() throws InterruptedException, ExecutionException, TimeoutException, IOException {
String containerName = containerPrefix + ".testObjectOperations";
long size = 1024;
UploadInfo uploadInfo = connection.getStorageNode(containerName, size);
assertNotNull(uploadInfo.getHost());
assertNotNull(uploadInfo.getToken());
Blob blob = connection.newBlob();
blob.getMetadata().setName("test.txt");
blob.setPayload("value");
Payloads.calculateMD5(blob);
byte[] md5 = blob.getMetadata().getContentMetadata().getContentMD5();
connection.upload(uploadInfo.getHost(), uploadInfo.getToken(), containerName, blob);
Map<String, String> metadata = connection.getMetadata(containerName + "/test.txt");
assertEquals(metadata.get("MD5"), Base64.encodeBytes(md5));
String content = connection.getFile(containerName + "/test.txt");