int blobLength = 100;
byte[] blob = createBlob(blobLength);
WriteBlobCommandMongo command = new WriteBlobCommandMongo(mongoConnection,
new ByteArrayInputStream(blob));
String blobId = command.execute();
assertNotNull(blobId);
byte[] readBlob = new byte[blobLength];
readBlob(blobId, readBlob);
assertTrue(Arrays.equals(blob, readBlob));