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: with_inference_test.rb
    path of file: ./repos/alba/test/usecases
    
    the code of the file until where you have to start completion: require_relative '../test_helper'
require_relative '../support/custom_inflector'

class WithInferenceTest < Minitest::Test
  class User

    
  def test_it_infers_key_with_key_bang_when_object_is_collection_and_object_name_has_multiple_words
    bank_accounts = [@bank_account]
    assert_equal(
      '{"bank_accounts":[{"account_number":123456789}]}',
      BankAccountResource.new(bank_accounts).serialize
    )
  end