Roberto Martinez admitted his delight as Everton overcame a tough West Ham side to secure a 1-0 win at Goodison Park.
The visitors entered the game on the back of four consecutive Premier League victories and they looked set to leave Merseyside with a point, only for Romelu Lukaku's late strike to end their unbeaten run.
Although Kevin Nolan and Andy Carroll came close, Sam Allardyce's men rarely threatened as they were dominated in possession for large parts of the game.
After sustained pressure from the hosts, Lukaku stepped off the bench to convert Leighton Baines' low cross after 81 minutes and Martinez says he that always expected a tough test.
"I think we saw today why West Ham are in such a good vein of form," he told Sky Sports.
"They collected the most precious results in the last five games, they only conceded one goal and you can see why.
"The way they defended for each other, the way they played with real confidence made it very difficult to hit the back of the net.
"On the other side, if you switch off or lose the concentration for one second, you have to be very aware of defending the box and I thought we were magnificent in that respect.
"It's going to take time when you play against a side like that. You need to score early otherwise you need to make sure that you don't lose concentration.
"You can always find that little bit of magic, that little bit of quality play that gives you a goal."
The Toffees secured their fourth home win on the bounce, moving up to sixth in the process, and Martinez hailed his side's attacking threat.
"We grew into the game and the action for the goal is as good as you're going to see," he said.
"From that point I was very, very pleased in the manner that we managed the game.
"Too many times it happens that you score a goal and you sit back and invite a bit of pressure and that's when West Ham are at their best.
"I thought we managed the game extremely, extremely well at that point."