### Question:
JavascriptRuntime implements IJavascriptRuntime { public static void setDefaultWebEngine(IWebEngine e) { engine = e; }  static IJavascriptRuntime getInstance(); static void setDefaultWebEngine(IWebEngine e); @Override JSObject execute(String command); @Override String getConstructor(String javascriptObjectType, Object... args); @Override String getArrayConstructor(String javascriptObjectType, Object[] ary); @Override String getFunction(String variable, String function, Object... args); @Override String getFunction(String function, Object... args); @Override String getArrayFunction(String function, Object[] ary); static void setJavascriptRuntime(IJavascriptRuntime testRuntime); static IWebEngine engine; }### Answer:
@Test public void testSetDefaultWebEngine() { JavascriptRuntime.setDefaultWebEngine(mockWebEngine); assertEquals( mockWebEngine, JavascriptRuntime.engine ); }