Added Unit test with using JDBCTemplate for checking Leader registration