SynchronizerTestImpl sync = new SynchronizerTestImpl();
config.setSynchronizer(sync);
FileHandler handler = new FileHandler(config);
File f = folder.newFile();
handler.save(f);
sync.verify(Methods.BEGIN_WRITE, Methods.END_WRITE);
}
/**
* Tests whether the initialization of properties is safe even if performed
* in multiple threads.