private static void verifyMetadata(String metadataValue, AtmosObject getBlob) {
assertEquals(getBlob.getContentMetadata().getContentLength(), Long.valueOf(16));
assert getBlob.getContentMetadata().getContentType().startsWith("text/plain");
assertEquals(getBlob.getUserMetadata().getMetadata().get("Metadata"), metadataValue);
SystemMetadata md = getBlob.getSystemMetadata();
assertEquals(md.getSize(), 16);
assert md.getGroupID() != null;
assertEquals(md.getHardLinkCount(), 1);
assert md.getInceptionTime() != null;
assert md.getLastAccessTime() != null;
assert md.getLastMetadataModification() != null;
assert md.getLastUserDataModification() != null;
assert md.getObjectID() != null;
assertEquals(md.getObjectName(), "object");
assert md.getPolicyName() != null;
assertEquals(md.getType(), FileType.REGULAR);
assert md.getUserID() != null;
try {
Strings2.toStringAndClose(URI.create(
"http://accesspoint.emccis.com/rest/objects/" + getBlob.getSystemMetadata().getObjectID()).toURL()
.openStream());