Implemented junit test method