assertSame(Response::HTTP_NOT_FOUND, $client->getResponse()->isNotFound());

(ToldYouCount: Twice).