Sri Lanka skipper out of second Test due to groin injury