Create Java Test Code