Brandon Marshall sat in the visitor’s locker room at Gillette Stadium on Sunday staring straight ahead. Still wearing his game pants, cleats and the T-shirt he had under his shoulder pads, Marshall looked as if he were in a trance, replaying the 30-23 loss to the Patriots in his head.

Then, he snapped out of it.

“Time to bounce back,” he said as he stood up and looked around the room.

It is indeed time for the Jets to bounce back after that heartbreaking loss to the Patriots. Everyone will be watching to see how they put that game behind them as they travel to Oakland to face the Raiders, who no longer look like pushovers.

As much as last week’s game was a chance for the Jets to make a statement they could compete with the Patriots in the AFC East, this week’s game is a test to see just what kind of team they are. Good teams move on quickly from difficult losses and get back on track. Bad teams let losses linger and let one loss lead to another.

It is fitting this week’s opponent is the Raiders. The old AFL rivals have met each other quite a few times at key moments in Jets history. This feels like another one. Are these Jets a playoff contender on the upswing under new coach Todd Bowles as they appear to be or will they fold into a .500 team over the next few months?

The Raiders have been standing in the Jets’ way since the two teams began playing in 1960. Sunday’s game will be the 45th meeting between the teams, including four playoff games. The very first meeting at the Polo Grounds played 55 years ago Wednesday was a 28-27 Raiders win over the then-Titans.

The rivalry was never hotter than in the late 1960s, when both teams were among the best in the AFL and played twice a year.

In 1967, the Jets announced their arrival as a contender with a Week 4 27-14 victory over Daryle Lamonica and the Raiders, the only loss Oakland had until the Super Bowl that season. Later that season, the rivalry ratcheted up a few notches when Raiders defensive end Ike Lassiter broke Joe Namath’s cheekbone in a 38-29 Jets loss. As legend has it, Namath was wearing a tuxedo that night as he checked out of the Jets’ Oakland motel.

“Where are you going?” Namath was asked.

“Las Vegas,” he said, “we’re off until Tuesday.”

Raiders owner Al Davis had an enlarged photo of Ben Davidson knocking Namath’s helmet off in that game on the stairwell leading up to his office at Raiders headquarters.

The following season, the two teams played the “Heidi Game.” The Jets were up 32-29 with 1:05 left when NBC switched from the game to the children’s movie. The Raiders scored two quick touchdowns to win 43-32 and change sports television forever. The Jets were as infuriated as the fans that day, with assistant coach Walt Michaels and team orthopedist Jim Nicholas kicking the door of the officials’ locker room.

Six weeks later, the Jets got revenge in the 1968 AFL Championship game at Shea Stadium. The Jets won 27-23 and won Super Bowl III two weeks later.

Much like the Jets-Patriots rivalry of today, neither side trusted the other back then. Jets coach Weeb Ewbank suspected Davis was spying on Jets’ practices. Davis had officials check Jets kicker Jim Turner’s shoe for an illegal metal plate, but there was none. The Jets believed the Raiders watered down the field of Oakland Coliseum to slow down Don Maynard.

The rivalry cooled after the AFL-NFL merger. The teams met in a playoff game after the 1982 season with Michaels’ Jets beating the then-Los Angeles Raiders. The two teams then seemed to meet every year in the early 2000s in big games. On Jan. 6, 2002 John Hall made a 53-yard field goal in Oakland for a 24-22 win to send the Jets to the playoffs … where they faced the Raiders the following week again in Oakland. They lost 38-24 under first-year coach Herm Edwards.

The teams played again the following season in the divisional round with the Raiders again ending the Jets’ season, 30-10. In 2006, Eric Mangini’s Jets beat the Raiders on the final day of the season at the Meadowlands to make the playoffs.

The Jets’ last visit to Oakland came in 2011 when Rex Ryan’s 2-0 Jets lost 34-24 to a mediocre Raiders team, the first sign Ryan’s team had slipped in his third season.

Now, Bowles brings his crew to the Black Hole at what feels like a pivotal moment of its season. Al and Weeb would be smiling.