}
@Test
public void testReadBlobRangeFromEnd() throws Exception {
byte[] buffer = new byte[blob.length / 2];
ReadBlobCommandMongo command = new ReadBlobCommandMongo(mongoConnection, blobId, (blob.length / 2) - 1,
buffer, 0, blob.length / 2);
int totalBytes = command.execute();
Assert.assertEquals(blob.length / 2, totalBytes);
for (int i = 0; i < buffer.length; i++) {
Assert.assertEquals(blob[((blob.length / 2) - 1) + i], buffer[i]);
}