def METHOD_NAME(cfngin_context: MockCFNginContext) -> None:
    """Test create_ecs_service_role."""
    stub = cfngin_context.add_stubber("iam")
    stub.add_response(
        "create_role",
        {
            "Role": {  # data required by botocore.stub
                "Path": "/",
                "RoleName": ECS_SERVICE_ROLE_NAME,
                "RoleId": "0" * 16,
                "Arn": f"arn:aws:iam::0123456879012:role/{ECS_SERVICE_ROLE_NAME}",
                "CreateDate": CREATE_DATE,
            }
        },
        {
            "RoleName": ECS_SERVICE_ROLE_NAME,
            "AssumeRolePolicyDocument": get_ecs_assumerole_policy().to_json(),
        },
    )
    stub.add_response(
        "put_role_policy",
        {},
        {
            "RoleName": ECS_SERVICE_ROLE_NAME,
            "PolicyName": "AmazonEC2ContainerServiceRolePolicy",
            "PolicyDocument": ECS_SERVICE_ROLE_POLICY.to_json(),
        },
    )
    with stub:
        assert create_ecs_service_role(cfngin_context)
    stub.assert_no_pending_responses()