Leinster finished their Pro12 campaign on a winning note on Saturday, beating Edinburgh 36-23 at Murrayfield.
The visitors earned a five-try bonus point win on what was Jimmy Gopperth's final appearance for the club.
Edinburgh were out to end a run of two consecutive defeats, while Leinster aimed to build on the previous week's narrow win over Treviso.
Sam Hidalgo-Clyne's penalty on seven minutes gave Edinburgh an early lead, but they were behind before the end of the first quarter.
Ian Madigan struck a drop goal and then added the conversion after he combined with Sean O'Brien to send Noel Reid racing over.
The scores were level just shy of the half-hour when Hamish Watson crossed following a period of home pressure for Hidalgo-Clyne to convert, but Leinster quickly hit the front again through Jack Conan's converted try.
Hidalgo-Clyne added a penalty early in the second half to narrow the deficit to just four points, but Madigan's pass sent Zane Kirchner over for an unconverted Leinster try to stretch the advantage.
But again the hosts roared back. Watson, Doug Fife and Simon Berghan clicked to put Tim Visser over just shy of the hour and Hidalgo-Clyne converted from out to reduce the deficit to just two points.
And Edinburgh were in front when Hidalgo-Clyne kicked another penalty goal with 15 minutes remaining, but the game took another swing in the final ten minutes.
Superb handling from Leinster sent Jordi Murpy over, before Luke McGrath rounded things off with the visitors' final try.
Madigan converted both scores to ensure a comfortable win for Leinster.
Tries: Watson, Visser
Cons: Hidalgo-Clyne 2
Pens: Hidalgo-Clyne 3
Tries: Reid, Conan, Kirchner, Murphy, L. McGrath
Cons: Madigan 4
Edinburgh: 15 Jack Cuthbert, 14 Dougie Fife, 13 Sam Beard, 12 Andries Strauss, 11 Tim Visser, 10 Tom Heathcote, 9 Sam Hidlago-Clyne, 8 Cornell Du Preez, 7 Hamish Watson, 6 Fraser McKenzie, 5 Ben Toolis, 4 Anton Bresler, 3 John Andress, 2 Ross Ford (c), 1 Alasdair Dickinson.
Replacements: 16 Neil Cochrane, 17 Rory Sutherland, 18 Simon Berghan, 19 Ollie Atkins, 20 James Hilterbrand, 21 Nathan Fowles, 22 Jade Te Rure, 23 Tom Brown.
Leinster: 15 Rob Kearney, 14 Zane Kirchner, 13 Colm O'Shea, 12 Noel Reid, 11 Dave Kearney, 10 Ian Madigan, 9 Isaac Boss, 8 Jamie Heaslip (c), 7 Sean O'Brien, 6 Jordi Murphy, 5 Mike McCarthy, 4 Devin Toner, 3 Mike Ross, 2 Richardt Strauss, 1 Jack McGrath.
Replacements: 16 Aaron Dundon, 17 Michael Bent, 18 Tadhg Furlong, 19 Tom Denton, 20 Jack Conan, 21 Luke McGrath, 22 Jimmy Gopperth, 23 Cian Kelleher.
Referee: Nigel Owens (WRU)
Assistant Referees: Andrew McMenemey, Graeme Wells (both SRU)
TMO: Iain Ramage (SRU)