### Question:
LanguageConfiguration { public void setConfiguration(Dictionary<?,?> configuration) throws ConfigurationException { processConfiguration(configuration.get(property)); } @SuppressWarnings("unchecked")  LanguageConfiguration(String property, String[] defaultConfig); String getProperty(); void setConfiguration(Dictionary<?,?> configuration); void setConfiguration(ServiceReference ref); boolean isLanguage(String language); Set<String> getExplicitlyIncluded(); Set<String> getExplicitlyExcluded(); boolean useWildcard(); Map<String,String> getParameters(String parsedLang); Map<String,String> getLanguageParams(String parsedLang); Map<String,String> getDefaultParameters(); void setDefault(); String getParameter(String language, String paramName);  }### Answer:
@Test(expected=ConfigurationException.class) public void testParamsOnExcludedLanguage() throws ConfigurationException { LanguageConfiguration lc = new LanguageConfiguration("test", null); Dictionary<String,Object> config = new Hashtable<String,Object>(); config.put("test", "*,!de;param=notAllowed"); lc.setConfiguration(config); }
@Test(expected=ConfigurationException.class) public void testParamsIncludedAndExcludedLanguage() throws ConfigurationException { LanguageConfiguration lc = new LanguageConfiguration("test", null); Dictionary<String,Object> config = new Hashtable<String,Object>(); config.put("test", "de,ru,!de"); lc.setConfiguration(config); }