started coding up junit test cases.