### Question:
MaskConfig { public static List<SchedulingMaskMap> loadConfig(Files inConfigFile, ObjectType inType) throws InvalidParameterException { try { return MaskConfig.loadConfig(FilesManagerFactory.FILE_MANAGER.getReaderFor(inConfigFile), inConfigFile.getType(), inType); } catch (final IOException e) { MaskConfig.LOGGER.fatal(e, e); } return Collections.emptyList(); }  static List<SchedulingMaskMap> loadConfig(Files inConfigFile, ObjectType inType);  }### Answer:
@Test public void forNabaztagtagTest() throws InvalidParameterException, FileNotFoundException { final String thePath = "src/test/java/net/violet/platform/api/config/application_mask.xml"; final List<SchedulingMaskMap> theSchedulings = MaskConfig.loadConfig(new FileReader(thePath), MimeType.MIME_TYPES.XML, ObjectType.NABAZTAG_V2); final Set<String> touchedType = new HashSet<String>(); for (final SchedulingMaskMap aScheduling : theSchedulings) { if (aScheduling.get("scheduling_type").equals(SchedulingType.SCHEDULING_TYPE.Daily.name())) { Assert.assertEquals(2, aScheduling.get("maximum")); Assert.assertEquals(0, aScheduling.get("minimum")); touchedType.add(aScheduling.get("scheduling_type").toString()); } else if (aScheduling.get("scheduling_type").equals(SchedulingType.SCHEDULING_TYPE.Ambiant.name())) { Assert.assertEquals(1, aScheduling.get("maximum")); Assert.assertEquals(0, aScheduling.get("minimum")); touchedType.add(aScheduling.get("scheduling_type").toString()); } else if (aScheduling.get("scheduling_type").equals(SchedulingType.SCHEDULING_TYPE.DailyWithDuration.name())) { Assert.assertEquals(1, aScheduling.get("maximum")); Assert.assertEquals(0, aScheduling.get("minimum")); touchedType.add(aScheduling.get("scheduling_type").toString()); } else { Assert.fail("Unexpected type : " + aScheduling.get("scheduling_type").toString()); } } Assert.assertEquals(3, touchedType.size()); }
@Test public void forRfidTest() throws InvalidParameterException, FileNotFoundException { final String thePath = "src/test/java/net/violet/platform/api/config/application_mask.xml"; final List<SchedulingMaskMap> theSchedulings = MaskConfig.loadConfig(new FileReader(thePath), MimeType.MIME_TYPES.XML, ObjectType.RFID_BOOK); final Set<String> touchedType = new HashSet<String>(); for (final SchedulingMaskMap aScheduling : theSchedulings) { if (aScheduling.get("scheduling_type").equals(SchedulingType.SCHEDULING_TYPE.InteractionTrigger.name())) { Assert.assertEquals(1, aScheduling.get("maximum")); Assert.assertEquals(1, aScheduling.get("minimum")); touchedType.add(aScheduling.get("scheduling_type").toString()); } else { Assert.fail("Unexpected type : " + aScheduling.get("scheduling_type").toString()); } } Assert.assertEquals(1, touchedType.size()); }