### Question:
JSRScriptEngineFactory implements ScriptEngineFactory { @Override public ScriptEngine getEngine(final ScriptSource scriptSource) { return new JSRScriptEngineAdapter(getJSRScriptEngine(scriptSource)); }  @Override ScriptEngine getEngine(final ScriptSource scriptSource);  }### Answer:
@Test public void getJSRBeanshellEngine() { final ScriptEngine engine = factory.getEngine( new ScriptSource("a = 2", ScriptingLanguage.BEANSHELL)); assertNotNull("Null script engine", engine); }
@Test public void getGroovyEngine() { final ScriptEngine engine = factory.getEngine(new ScriptSource( "def name = 'mashup'", ScriptingLanguage.GROOVY)); assertNotNull("Null script engine", engine); }
@Test public void getJavascriptEngine() { final ScriptEngine engine = factory.getEngine(new ScriptSource( "var x = 123", ScriptingLanguage.JAVASCRIPT)); assertNotNull("Null script engine", engine); }