factory.configureSnapshotSerializer(suffix, serializer);
return factory.create();
}
private void appendTakeSnapshotAndClose(Prevayler<StringBuffer> prevayler) throws Exception {
prevayler.execute(new AppendTransaction(" one"));
prevayler.execute(new AppendTransaction(" two"));
prevayler.takeSnapshot();
prevayler.close();
}