assertEquals(1, enabledRuleIds.size());
//now change language
conf = new Configuration(tempFile.getParentFile(), tempFile.getName(),
new Belarusian());
disabledRuleIds = conf.getDisabledRuleIds();
assertTrue(disabledRuleIds.isEmpty());
enabledRuleIds = conf.getEnabledRuleIds();
assertTrue(enabledRuleIds.isEmpty());
conf.setEnabledRuleIds(new HashSet<>(Arrays.asList("enabledBYRule")));
conf.saveConfiguration(new Belarusian());
//and back...
conf = new Configuration(tempFile.getParentFile(), tempFile.getName(),
new AmericanEnglish());
disabledRuleIds = conf.getDisabledRuleIds();