### Question:
ScriptEngine { public static void init () { ScriptEngine.instance = new LuaScriptEngine(); } protected  ScriptEngine(); static void init(); static IScriptEngine getInstance(); static void cleanUp();  }### Answer:
@Test public void testInit () { ScriptEngine.init(); IScriptEngine engine = ScriptEngine.getInstance(); assertNotNull(engine); IScriptEngine engine1 = ScriptEngine.getInstance(); assertEquals(engine, engine1); ScriptEngine.cleanUp(); assertNull(ScriptEngine.getInstance()); }