assertEquals(segment.dataBlockCount, 2);
assertEquals(segment.checkBlockCount, 3);
assertEquals(segment.crossCheckBlockCount, 0);
assertEquals(storage.getStatus(), Status.ENCODED);
segment.setKey(0, segment.encodeBlock(0).getClientKey());
segment.onFailure(0, new InsertException(InsertExceptionMode.ROUTE_NOT_FOUND));
assertEquals(storage.getStatus(), Status.ENCODED);
segment.onFailure(0, new InsertException(InsertExceptionMode.ROUTE_NOT_FOUND));
assertEquals(storage.getStatus(), Status.ENCODED);
segment.onFailure(0, new InsertException(InsertExceptionMode.REJECTED_OVERLOAD));
// Should count as success at this point.
try {
cb.waitForSucceededInsert();
assertTrue(false);
} catch (InsertException e) {