def METHOD_NAME(self, ecr_repo_mock):
    companion_stack_name = "CompanionStackA"
    function_prefix = "Function"
    function_names = ["A", "B", "C", "D", "E", "F"]
    repo_logical_id_prefix = "RepoLogicalID"
    repo_physical_id_prefix = "RepoPhysicalID"
    repo_output_id_prefix = "RepoOutputID"
    ecr_repo_instances = list()
    for function_name in function_names:
        ecr_repo_instance = Mock()
        ecr_repo_instance.logical_id = repo_logical_id_prefix + function_name
        ecr_repo_instance.physical_id = repo_physical_id_prefix + function_name
        ecr_repo_instance.output_logical_id = repo_output_id_prefix + function_name
        ecr_repo_instances.append(ecr_repo_instance)
    ecr_repo_mock.side_effect = ecr_repo_instances
    companion_stack = Mock()
    companion_stack.stack_name = companion_stack_name
    builder = CompanionStackBuilder(companion_stack)
    for function_name in function_names:
        builder.add_function(function_prefix + function_name)
    template = builder.build()
    for function_name in function_names:
        self.assertIn(f'"{repo_logical_id_prefix + function_name}":', template)
        self.assertIn(f'"RepositoryName": "{repo_physical_id_prefix + function_name}"', template)
        self.assertIn(f'"{repo_output_id_prefix + function_name}":', template)