### Question:
SandboxedGroovyScriptEngine extends AbstractScriptEngine implements Compilable { @Override public ScriptEngineFactory getFactory() { return factory; } SandboxedGroovyScriptEngine(final GroovyEngineFactory factory, final ScriptEngine realEngine,
                                final GroovyValueFilter sandbox); @Override Object eval(final String script, final ScriptContext scriptContext); @Override Object eval(final Reader reader, final ScriptContext scriptContext); @Override Bindings createBindings(); @Override ScriptEngineFactory getFactory(); @Override CompiledScript compile(final String script); @Override CompiledScript compile(final Reader reader);  }### Answer:
@Test public void shouldReturnCorrectEngineFactory() throws Exception { ScriptEngineFactory result = testEngine.getFactory(); assertThat(result).isEqualTo(engineFactory); }