public void testSmallSplitfileWithLastBlock() throws IOException, InsertException {
Random r = new Random(12122);
long size = 65535;
byte[] originalData = new byte[(int)size];
r.nextBytes(originalData);
LockableRandomAccessBuffer data = smallRAFFactory.makeRAF(originalData, 0, originalData.length, true);
HashResult[] hashes = getHashes(data);
MyCallback cb = new MyCallback();
KeysFetchingLocally keys = new MyKeysFetchingLocally();
SplitFileInserterStorage storage = new SplitFileInserterStorage(data, size, cb, null,
new ClientMetadata(), false, null, smallRAFFactory, false, baseContext.clone(),