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: life_cycle_test.rb
    path of file: ./repos/workarea/core/test/models/workarea/segment
    
    the code of the file until where you have to start completion: require 'test_helper'

module Workarea
  class Segment
    class LifeCycleTest < TestCase
      class FooSegment < Segment
        include LifeCycle
        self.default_rules = [Rul
    
      def test_cannot_destroy
        life_cycle = FooSegment.instance # create it

        assert_no_difference 'Segment.count' do
          refute(life_cycle.destroy)
        end

        assert_nothing_raised do
          life_cycle.reload
        end
      end