    @Test
    public void testInvokeJavascript() {

        String arg = "myArg";
        Object[] argArray = new Object[] {arg};
        String function = "myFunction";
        String result = "result";
        
        when(mockJsObject.call(function, argArray)).thenReturn(result);
        Object returnValue = testJavascriptObject.invokeJavascript(function, arg);
        assertEquals( result, returnValue );
    }