Derry 0-13 Cavan 0-12: Three members of Derry's championship panel of last summer came off the bench to kick the crucial scores as they came from behind to edge this Dr McKenna Cup clash at Celtic Park.
A young Cavan side had looked set to claim victory when they led by two points with only three minutes to play.
But substitutes Conleith Gilligan (free) and Mark Lynch levelled matters, before Niall Holly stepped up to kick a long-range winner three minutes into added time.
The result was hard on Cavan, who started sharply and led by 0-3 to 0-1 after 10 minutes thanks to two scores from Raymond Galligan and one from Niall McDermott . Derry hit back, with Cailean O'Boyle kicking four frees before late points from Eoghan Brown and Emmett McGuckin gave them a 0-7 to 0-5 interval lead.
Cavan dominated the opening exchanges of the second half with McDermott, Niall Smith and Conor McClarey pointing frees to lead 0-9 to 0-7 after 45 minutes.
Eugene Scullion's second yellow card on 50 minutes gave Cavan an extra man and they surged into a 0-12 to 0-10 with three minutes left.
However, then came Derry's late charge as the substitutes' intervention proved decisive.
Scorers - Derry: C O'Boyle 0-5f, E Lynn 0-3 (1f), E McGuckin, E Brown, C Gilligan (f), M Lynch (f), N Holly 0-1 each. Cavan: N McDermott 0-4 (3f), R Galligan (f), D Giveny 0-2 each, R Cullivan, G McKiernan, N Smith, E Keating 0-1 each.
Derry - S Harbinson; B McCallion, E Scullion, M Craig; M Drumm, D McBride, SL McGoldrick; J McCamley, PJ McCloskey; C McKaigue, C O'Boyle, B McGoldrick; E Lynn, E McGuckin, E Brown. Subs: M Bateson for B McGoldrick (h-t), N Holly for PJ McCloskey (37), C McGoldrick for McKaigue (45), M Lynch for Brown (52), C Gilligan for O'Boyle (65). Blood sub: A McAlynn for SL McGoldrick 59.
Cavan - F Reilly; O Minagh, S McCormack, F Slowey; B Watters, P Reilly, D O'Reilly; G McKiernan D Givney; N Smith, R Cullivan, S Jordan; N McDermott, E Keating, R Galligan. Subs: D Barkey for Minagh (8), D O'Dowd for Slowey (27), C McClarey for Cullivan (h-t), B Fitzpatrick for Galligan (52).
Ref - M Higgins (Fermanagh)