int objects = 5000000;
long start = System.nanoTime();
for (int i = 0; i < objects; i++) {
excerpt.startExcerpt(28);
excerpt.writeObject(BigDecimal.valueOf(i % 1000));
excerpt.finish();
}
for (int i = 0; i < objects; i++) {
assertTrue(excerpt.index(i));
BigDecimal bd = (BigDecimal) excerpt.readObject();
assertEquals(i % 1000, bd.longValue());