testCreateAndRead(getFileBlob());
}
@Test
public void testDataStoreBlob() throws Exception {
FileDataStore fds = new FileDataStore();
fds.setMinRecordLength(4092);
fds.init(getWorkDir().getAbsolutePath());
DataStoreBlobStore dbs = new DataStoreBlobStore(fds);
nodeStore = getNodeStore(dbs);
//Test for Blob which get inlined
byte[] data = new byte[fds.getMinRecordLength()-2];
new Random().nextBytes(data);
Blob b1 = testCreateAndRead(nodeStore.createBlob(new ByteArrayInputStream(data)));
assertTrue(b1 instanceof SegmentBlob);
assertNull(((SegmentBlob) b1).getBlobId());