Method name change, formatted the code and added junit test case