@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);
}