Sri Lankan have dropped Ramesh Mendis for the second Test against New Zealand despite taking six wickets in the first Test, replacing him with Nishan Peiris.