@Test public void testTimedWrite() throws Exception {
File storeFile=File.createTempFile("feedback",".store");
storeFile.deleteOnExit();
final int recordCount=1000000;
final FeedbackStore store=new FeedbackStore(storeFile,1);
long start=System.nanoTime();
for (int i=0; i < recordCount; i++) {
store.append(i,"Hello World!".getBytes());
}
long end=System.nanoTime();
System.out.printf("Writing %d records took %.3f ms.%n",recordCount,(end - start) / 1.0e6);
}