Test case added for java project