Fix Java Warnings
Update Test Case with new error messages