### Question:
ConfigDef extends WebHarvestPluginDef { public ScriptingLanguage getScriptingLanguage() { return scriptingLanguage; } ConfigDef(final XmlNode xmlNode,
            final Class<? extends Processor> pluginClass); String getCharset(); ScriptingLanguage getScriptingLanguage();  }### Answer:
@Test public void getScriptingLanguage() { nodeMock.addAttribute(LANGUAGE_ATTR, null, LANGUAGE); final ScriptingLanguage lang = new ConfigDef(nodeMock, null). getScriptingLanguage(); assertNotNull("Scripting language is null.", lang); assertEquals("Unexpected scripting language.", ScriptingLanguage.GROOVY, lang); }
@Test public void getScriptingLanguageIfNullLanguage() { final ScriptingLanguage lang = new ConfigDef(nodeMock, null). getScriptingLanguage(); assertNotNull("Default scripting language is null.", lang); assertEquals("Unexpected default scripting language.", ScriptingLanguage.BEANSHELL, lang); }