test hookOn from lua to java