Israelis put "terror in dock" at mock trial while UN court weighs barrier