junit on randomEvent