.setCacheControl("test")
.setContentEncoding("UTF-8")
/* .setContentMD5("1234") */.setContentType(
"text/plain"));
GetBlobResult result = service.getBlob(TEST_CONTAINER_FOR_BLOBS,
"test2");
// Assert
assertNotNull(result);
assertNotNull(result.getMetadata());
assertEquals(0, result.getMetadata().size());
BlobProperties props = result.getProperties();
assertNotNull(props);
assertEquals("test", props.getCacheControl());
assertEquals("UTF-8", props.getContentEncoding());
assertEquals("en-us", props.getContentLanguage());
assertEquals("text/plain", props.getContentType());
assertEquals(content.length(), props.getContentLength());
assertNotNull(props.getEtag());
assertNull(props.getContentMD5());
assertNotNull(props.getLastModified());
assertEquals("BlockBlob", props.getBlobType());
assertEquals("unlocked", props.getLeaseStatus());
assertEquals(0, props.getSequenceNumber());
assertEquals(content,
inputStreamToString(result.getContentStream(), "UTF-8"));
}