complete unit test java case