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: license_test.rb
    path of file: ./repos/mushroom-observer/test/models
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require("test_helper")

class LicenseTest < UnitTestCase
  def test_current_names_and_ids
    names_and_ids = License.current_names_an
    
  def test_current_names_and_ids
    names_and_ids = License.current_names_and_ids
    assert_equal(3, names_and_ids.length)
    names_and_ids.each do |(_name, id)|
      license = License.find(id)
      assert_not(
        license.deprecated,
        "#{license.id}, #{license.display_name}, should not be deprecated."
      )
    end
  end