MyCallback cb = new MyCallback(insert);
InsertContext context = baseContext.clone();
context.maxInsertRetries = 2;
ClientRequestSelector keys = new ClientRequestSelector(true, false, false, null);
SplitFileInserterStorage storage = new SplitFileInserterStorage(data, size, cb, null,
new ClientMetadata(), false, null, smallRAFFactory, false, context,
cryptoAlgorithm, cryptoKey, null, hashes, smallBucketFactory, checker,
r, memoryLimitedJobRunner, jobRunner, ticker, keys, false, 0, 0, 0, 0);
storage.start();
cb.waitForFinishedEncode();
assertEquals(storage.segments.length, 1);