### Question:
JavascriptRuntime implements IJavascriptRuntime { protected String getArgString(Object arg) { if (arg instanceof JavascriptObject) { return ((JavascriptObject) arg).getVariableName(); } else if( arg instanceof JavascriptEnum ) { return ((JavascriptEnum) arg).getEnumValue().toString(); } else { return arg.toString(); } }  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 testGetArgString() { LatLong arg = new LatLong(15,15); arg.variableName = "myVariable"; JavascriptRuntime rt = (JavascriptRuntime) JavascriptRuntime.getInstance(); assertEquals( "myVariable", rt.getArgString( arg ) ); }