}
public void testBadSuffix() {
PrevaylerFactory factory = new PrevaylerFactory();
try {
factory.configureSnapshotSerializer("SNAPSHOT", new JavaSerializer());
fail();
} catch (IllegalArgumentException exception) {
assertEquals("Snapshot filename suffix must match /[a-zA-Z0-9]*[Ss]napshot/, but 'SNAPSHOT' does not", exception.getMessage());
}
}