source: class PropertyFileSettingsLoaderTest {
  
      @Rule
      public ExpectedException expectedException;
      private PropertyFileSettingsLoader loader;
      private Settings settings;
      private PropertyTools propertyTools;
      private Logger log;
  
      @Test
      public void loadSettingsShouldHandleIOException() throws IOException {
  
target:         final IOException ioException = new IOException("Unknown error");
          doThrow(ioException).when(propertyTools).loadProperties(anyString());
  
          loader.loadSettings(settings);
  
          verify(propertyTools).loadProperties(Constants.APP_FOLDER + "kouchat.ini");
          verify(log).log(Level.SEVERE, "java.io.IOException: Unknown error", ioException);
          SettingsTest.verifyDefaultValues(settings);
      }
  
  }