Testing java in hand