old_contents: 'use strict'
  
  const { Buffer } = require('buffer')
  const { config, Lambda } = require('aws-sdk')
  
  const { stringify } = JSON
  
  config.update({
    accessKeyId: 'ABC',
    secretAccessKey: 'SECRET',
  })
  
  const lambda = new Lambda({
    apiVersion: '2015-03-31',
    endpoint: 'http://localhost:3000',
  })
  
  exports.hello = async function hello() {
    const clientContextData = stringify({ foo: 'foo' })
  
    const params = {
      ClientContext: Buffer.from(clientContextData).toString('base64'),
      FunctionName: 'lambda-invoke-dev-toBeInvoked',
      InvocationType: 'RequestResponse',
      Payload: stringify({ bar: 'bar' }),
    }
  
    const response = await lambda.invoke(params).promise()
  
    return {
      body: stringify(response),
      statusCode: 200,
    }
  }
  
  exports.toBeInvoked = async function toBeInvoked(event, context) {
    return {
      clientContext: context.clientContext,
      event,
    }
  }
  
new_contents: 'use strict'
  
  const { Buffer } = require('buffer')
  const { config, Lambda } = require('aws-sdk')
  
  const { stringify } = JSON
  
  config.update({
    accessKeyId: 'ABC',
    secretAccessKey: 'SECRET',
  })
  
  const lambda = new Lambda({
    apiVersion: '2015-03-31',
    endpoint: 'http://localhost:3002',
  })
  
  exports.hello = async function hello() {
    const clientContextData = stringify({ foo: 'foo' })
  
    const params = {
      ClientContext: Buffer.from(clientContextData).toString('base64'),
      FunctionName: 'lambda-invoke-dev-toBeInvoked',
      InvocationType: 'RequestResponse',
      Payload: stringify({ bar: 'bar' }),
    }
  
    const response = await lambda.invoke(params).promise()
  
    return {
      body: stringify(response),
      statusCode: 200,
    }
  }
  
  exports.toBeInvoked = async function toBeInvoked(event, context) {
    return {
      clientContext: context.clientContext,
      event,
    }
  }
  
subject: Fix port in example