Junit Testcases to support the functionality