Leicester: India skipper Rahul Dravid and opener Gautam Gambhir both made half-centuries against Sri Lanka 'A' here on Saturday.
Gambhir hit 67 before retiring, while Dravid also scored an unbeaten 67 as India reached 238-5 in reply to Sri Lanka's 266 all out.
At stumps, the Sri Lankans were 112-1 in their second innings, a lead of 140 with Michael Vandort 61 not out and Dilruwan Perera unbeaten on 48.
India will face England in the third and final Test starting at The Oval on Thursday.
"The declaration was made to make the game more exciting and interesting," said Gambhir.
"Any game on a tour is important and you need to take your chance when the opportunities arise. So it was good to get some time in the middle which is what I need. It helps to raise confidence."
Gambhir also said India's win over England in the second Test at Trent Bridge last week had given the tourists a huge lift ahead of the series decider.
"Winning the Test match at Trent Bridge has produced a great feeling in the dressing room and there is a terrific spirit and real happiness among the squad," said the opener.