You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: user_notification_channel_test.rb
    path of file: ./repos/plots2/test/action_cable/unit
    
    the code of the file until where you have to start completion: require 'test_helper'
require 'byebug'
class UserNotificationChannelTest < ActionCable::Channel::TestCase
  def test_no_subscription_to_user_notification_channel_when_user_is_not_loggedin

    # Setting current_user to nil in stub connection means user is not loggedin
    stub_connection(current_user: nil)

    # Simulate a subscrip
    
  def test_no_subscription_to_user_notification_channel_when_user_is_not_loggedin

    # Setting current_user to nil in stub connection means user is not loggedin
    stub_connection(current_user: nil)

    # Simulate a subscription creation to user_channel
    subscribe

    # Asserts that the subscription was successfully created
    assert subscription.rejected?

    # Asserts that the channel subscribes connection to a stream
    assert_no_streams
  end