@Test
public void testSaveSynchronized() throws ConfigurationException, IOException
{
PropertiesConfiguration config = new PropertiesConfiguration();
config.addProperty("test.synchronized", Boolean.TRUE);
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);
}