   @Test(expected=JSException.class)
   public void testCallbackWithInnerClass()
   {

      Fx.runBlankWebPageInFx((WebEngine engine) -> {
         JSObject jsWin = (JSObject)engine.executeScript("window");
         jsWin.setMember("fnobj", new Supplier<Integer>() {
            @Override public Integer get()
            {
               return 9;
            }});
         Assert.assertEquals(9, jsWin.eval("fnobj.get();"));
      });
   }