Laravel - HTTP Tests - Assert Unauthorized

Assert that the response has an unauthorized (401) HTTP status code:

    
    $response->assertUnauthorized();