Java Test by Ward