Updated Java Test file