### Question:
WidgetConfig { public static List<ConfigurationWidgetMap> loadConfig(FilesData inFile, boolean withLocalization) throws InvalidParameterException { try { return WidgetConfig.loadConfig(FilesManagerFactory.FILE_MANAGER.getReaderFor(inFile.getReference()), inFile.getReference().getType(), withLocalization); } catch (final IOException e) { WidgetConfig.LOGGER.fatal(e, e); } return Collections.emptyList(); }  static List<ConfigurationWidgetMap> loadConfig(FilesData inFile, boolean withLocalization);  }### Answer:
@Test public void loadConfigTest() throws InvalidParameterException, FileNotFoundException { final String thePath = "src/test/java/net/violet/platform/api/config/application_interface.xml"; final List<ConfigurationWidgetMap> theSettings = WidgetConfig.loadConfig(new FileReader(thePath), MimeType.MIME_TYPES.XML, false); Assert.assertEquals(5, theSettings.size()); }