Played in cool and windy conditions at Rotary Park on Sunday, the Wanderers had a hot start jumping out to a 2-0 lead.
YFC struck back to bring the game to 2-1, before the home side responded instantly to take a 3-1 lead into half time.
The Wanderers continued their dominance in the second half, with an early goal extending their lead to three goals.
While Deni managed to control general play, the visitors fought their way back, with two goals against the run of play within a 20 minute period.
The Wanderers managed to hold their 4-3 lead when the final whistle was blown, bringing an end to a thrilling encounter.
Wanderers playing-coach Josh Perizzolo said the match highlighted what his side still needs to work on before finals.
"We did enough early but there were a few silly mistakes which saw us concede a couple of goals," he said.
"We want to be in tip top condition heading into finals, so we'll do some work at training (last night) and try to iron out the things we need to work on."
The Wanderers will have one last opportunity to gear-up for finals when they travel to take on Hanwood on Sunday.
Perizzolo said that his side will look to fine-tune a few things and also change things up.
"We'll have a few different rotations to get some more minutes into some players," he said.
"We might look to have Ash Hart on as a starter in this game.
"He has shown good promise as a 16 year-old but he hasn't played a huge amount of minutes.
"With players like Ash, it gives us a good glimpse into the future players of the club, so it's crucial to get him out there for more time before finals."