def METHOD_NAME(mock_spark_context):
    mock_env_helper = Mock()
    mock_spark_context.side_effect = [Mock(), Mock()]
    spark_session_factory = SparkSessionFactory(mock_env_helper)
    a_reference = spark_session_factory.spark_session
    another_reference = spark_session_factory.spark_session
    assert a_reference is another_reference