@Test
public void saveSettingsShouldShowErrorOnException() throws IOException {

    doThrow(new IOException("Don't save")).when(propertyTools).saveProperties(
            anyString(), any(Properties.class), anyString());
    settingsSaver.saveSettings();
    verify(errorHandler).showError("Settings could not be saved:\njava.io.IOException: Don't save");
}