---
policy: /ce/unit-test/list/text-items
logic: /ce/unit-test/list/text-items/unit-test.logic.yaml
executionTime: 2025-07-08T23:29:10.127118272Z
rows:
  - id: Null-And-Null
    match: true
    status:
      expected: COMPLIANT
      actual: COMPLIANT
    conditionIndex:
      expected: 199
      actual: 199
    conditionText:
      expected: "unitTest(Null-And-Null): null == null"
      actual: "unitTest(Null-And-Null): null == null"
    runtimeError: {}
  - id: Null-And-Empty
    match: true
    status:
      expected: COMPLIANT
      actual: COMPLIANT
    conditionIndex:
      expected: 299
      actual: 299
    conditionText:
      expected: "unitTest(Null-And-Empty): null == listOfText([])"
      actual: "unitTest(Null-And-Empty): null == listOfText([])"
    runtimeError: {}
  - id: Empty-And-Empty-Item
    match: true
    status:
      expected: COMPLIANT
      actual: COMPLIANT
    conditionIndex:
      expected: 399
      actual: 399
    conditionText:
      expected: "unitTest(Empty-And-Empty-Item): listOfText([]) != listOfText([''])"
      actual: "unitTest(Empty-And-Empty-Item): listOfText([]) != listOfText([''])"
    runtimeError: {}
  - id: Empty-And-Empty-Items
    match: true
    status:
      expected: COMPLIANT
      actual: COMPLIANT
    conditionIndex:
      expected: 499
      actual: 499
    conditionText:
      expected: "unitTest(Empty-And-Empty-Items): listOfText([]) != listOfText(['',\
        \ '', ''])"
      actual: "unitTest(Empty-And-Empty-Items): listOfText([]) != listOfText(['',\
        \ '', ''])"
    runtimeError: {}
  - id: One-Empty-And-Many-Empty
    match: true
    status:
      expected: COMPLIANT
      actual: COMPLIANT
    conditionIndex:
      expected: 599
      actual: 599
    conditionText:
      expected: "unitTest(One-Empty-And-Many-Empty): listOfText(['']) != listOfText(['',\
        \ '', ''])"
      actual: "unitTest(One-Empty-And-Many-Empty): listOfText(['']) != listOfText(['',\
        \ '', ''])"
    runtimeError: {}
  - id: Same-Number-Of-Empty
    match: true
    status:
      expected: COMPLIANT
      actual: COMPLIANT
    conditionIndex:
      expected: 699
      actual: 699
    conditionText:
      expected: "unitTest(Same-Number-Of-Empty): listOfText(['', '', '']) == listOfText(['',\
        \ '', ''])"
      actual: "unitTest(Same-Number-Of-Empty): listOfText(['', '', '']) == listOfText(['',\
        \ '', ''])"
    runtimeError: {}
  - id: Empty-With-Whitespaces
    match: true
    status:
      expected: COMPLIANT
      actual: COMPLIANT
    conditionIndex:
      expected: 799
      actual: 799
    conditionText:
      expected: "unitTest(Empty-With-Whitespaces): listOfText(['']) != listOfText(['',\
        \ '  ', '\\t', '\\n', '\\r', '  \\n\\r\\t  '])"
      actual: "unitTest(Empty-With-Whitespaces): listOfText(['']) != listOfText(['',\
        \ '  ', '\\t', '\\n', '\\r', '  \\n\\r\\t  '])"
    runtimeError: {}
  - id: Empty-With-Whitespaces-Size
    match: true
    status:
      expected: COMPLIANT
      actual: COMPLIANT
    conditionIndex:
      expected: 899
      actual: 899
    conditionText:
      expected: "unitTest(Empty-With-Whitespaces-Size): listOfText(['', '  ', '\\\
        t', '\\n', '\\r', '  \\n\\r\\t  ']).size() == number(6.0)"
      actual: "unitTest(Empty-With-Whitespaces-Size): listOfText(['', '  ', '\\t',\
        \ '\\n', '\\r', '  \\n\\r\\t  ']).size() == number(6.0)"
    runtimeError: {}
  - id: Same-Number-Of-Whitespaces
    match: true
    status:
      expected: COMPLIANT
      actual: COMPLIANT
    conditionIndex:
      expected: 999
      actual: 999
    conditionText:
      expected: "unitTest(Same-Number-Of-Whitespaces): listOfText(['', ' ', '  ',\
        \ '   ', '    ', '     ']) == listOfText(['', '  ', '\\t', '\\n', '\\r', '\
        \  \\n\\r\\t  '])"
      actual: "unitTest(Same-Number-Of-Whitespaces): listOfText(['', ' ', '  ', '\
        \   ', '    ', '     ']) == listOfText(['', '  ', '\\t', '\\n', '\\r', ' \
        \ \\n\\r\\t  '])"
    runtimeError: {}
  - id: Empty-And-Non-Empty
    match: true
    status:
      expected: COMPLIANT
      actual: COMPLIANT
    conditionIndex:
      expected: 1099
      actual: 1099
    conditionText:
      expected: "unitTest(Empty-And-Non-Empty): listOfText(['a']) != listOfText(['\
        \ ', 'a'])"
      actual: "unitTest(Empty-And-Non-Empty): listOfText(['a']) != listOfText([' ',\
        \ 'a'])"
    runtimeError: {}
  - id: Empty-And-Non-Empty-Size
    match: true
    status:
      expected: COMPLIANT
      actual: COMPLIANT
    conditionIndex:
      expected: 1199
      actual: 1199
    conditionText:
      expected: "unitTest(Empty-And-Non-Empty-Size): listOfText([' ', 'a']).size()\
        \ == number(2.0)"
      actual: "unitTest(Empty-And-Non-Empty-Size): listOfText([' ', 'a']).size() ==\
        \ number(2.0)"
    runtimeError: {}
  - id: Duplicate-Values
    match: true
    status:
      expected: COMPLIANT
      actual: COMPLIANT
    conditionIndex:
      expected: 1299
      actual: 1299
    conditionText:
      expected: "unitTest(Duplicate-Values): listOfText(['a']) != listOfText(['a',\
        \ 'a'])"
      actual: "unitTest(Duplicate-Values): listOfText(['a']) != listOfText(['a', 'a'])"
    runtimeError: {}
  - id: Duplicate-Values-Size
    match: true
    status:
      expected: COMPLIANT
      actual: COMPLIANT
    conditionIndex:
      expected: 1399
      actual: 1399
    conditionText:
      expected: "unitTest(Duplicate-Values-Size): listOfText(['a', 'a']).size() ==\
        \ number(2.0)"
      actual: "unitTest(Duplicate-Values-Size): listOfText(['a', 'a']).size() == number(2.0)"
    runtimeError: {}
  - id: Duplicate-Values-Different-Case
    match: true
    status:
      expected: COMPLIANT
      actual: COMPLIANT
    conditionIndex:
      expected: 1499
      actual: 1499
    conditionText:
      expected: "unitTest(Duplicate-Values-Different-Case): listOfText(['a', 'a'])\
        \ == listOfText(['A', 'a'])"
      actual: "unitTest(Duplicate-Values-Different-Case): listOfText(['a', 'a']) ==\
        \ listOfText(['A', 'a'])"
    runtimeError: {}
  - id: Duplicate-Values-Different-Case-Size
    match: true
    status:
      expected: COMPLIANT
      actual: COMPLIANT
    conditionIndex:
      expected: 1599
      actual: 1599
    conditionText:
      expected: "unitTest(Duplicate-Values-Different-Case-Size): listOfText(['A',\
        \ 'a']).size() == number(2.0)"
      actual: "unitTest(Duplicate-Values-Different-Case-Size): listOfText(['A', 'a']).size()\
        \ == number(2.0)"
    runtimeError: {}
  - id: Duplicate-Values-Whitespace
    match: true
    status:
      expected: COMPLIANT
      actual: COMPLIANT
    conditionIndex:
      expected: 1699
      actual: 1699
    conditionText:
      expected: "unitTest(Duplicate-Values-Whitespace): listOfText(['a', 'a']) ==\
        \ listOfText([' a ', 'a'])"
      actual: "unitTest(Duplicate-Values-Whitespace): listOfText(['a', 'a']) == listOfText(['\
        \ a ', 'a'])"
    runtimeError: {}
  - id: Duplicate-Values-Whitespace-Size
    match: true
    status:
      expected: COMPLIANT
      actual: COMPLIANT
    conditionIndex:
      expected: 1799
      actual: 1799
    conditionText:
      expected: "unitTest(Duplicate-Values-Whitespace-Size): listOfText([' a ', 'a']).size()\
        \ == number(2.0)"
      actual: "unitTest(Duplicate-Values-Whitespace-Size): listOfText([' a ', 'a']).size()\
        \ == number(2.0)"
    runtimeError: {}
  - id: Duplicate-Values-Whitespaces-Inside
    match: true
    status:
      expected: COMPLIANT
      actual: COMPLIANT
    conditionIndex:
      expected: 1899
      actual: 1899
    conditionText:
      expected: "unitTest(Duplicate-Values-Whitespaces-Inside): listOfText(['a b',\
        \ 'a b', 'a b']) == listOfText(['a b', 'a   b', 'a\\nb'])"
      actual: "unitTest(Duplicate-Values-Whitespaces-Inside): listOfText(['a b', 'a\
        \ b', 'a b']) == listOfText(['a b', 'a   b', 'a\\nb'])"
    runtimeError: {}
  - id: Duplicate-Values-Whitespaces-Inside-Size
    match: true
    status:
      expected: COMPLIANT
      actual: COMPLIANT
    conditionIndex:
      expected: 1999
      actual: 1999
    conditionText:
      expected: "unitTest(Duplicate-Values-Whitespaces-Inside-Size): listOfText(['a\
        \ b', 'a   b', 'a\\nb']).size() == number(3.0)"
      actual: "unitTest(Duplicate-Values-Whitespaces-Inside-Size): listOfText(['a\
        \ b', 'a   b', 'a\\nb']).size() == number(3.0)"
    runtimeError: {}
  - id: Value-Order
    match: true
    status:
      expected: COMPLIANT
      actual: COMPLIANT
    conditionIndex:
      expected: 2099
      actual: 2099
    conditionText:
      expected: "unitTest(Value-Order): listOfText(['a', 'b']) != listOfText(['b',\
        \ 'a'])"
      actual: "unitTest(Value-Order): listOfText(['a', 'b']) != listOfText(['b', 'a'])"
    runtimeError: {}
usedFiles:
  - path: /ce/unit-test/list/text-items/policy.yaml
    md5Hash: C7938C3C06EF0F702555FB5D11FA9766
    content: |
      ---
      names:
        full: LIST Unit Tests for Text Items
        contextual: Text Items
      description: ""
  - path: /ce/unit-test/list/text-items/unit-test.logic.yaml
    md5Hash: D5FA0C7F2A7A5E07B9DBF3D32D2C85F8
    content: |-
      ---
      inputType: CA10__CaAwsInstance__c
      conditions:
        - status: COMPLIANT
          currentStateMessage: Null and Null
          check:
            UNIT_TEST:
              id: Null-And-Null
              expected:
                text: "unitTest(Null-And-Null): null == null"
              arg:
                IS_EQUAL:
                  left:
                    UNIT_TEST_NULL:
                      returnType: LIST_OF_TEXT
                  right:
                    UNIT_TEST_NULL:
                      returnType: LIST_OF_TEXT
        - status: COMPLIANT
          currentStateMessage: Null and Empty
          check:
            UNIT_TEST:
              id: Null-And-Empty
              expected:
                text: "unitTest(Null-And-Empty): null == listOfText([])"
              arg:
                IS_EQUAL:
                  left:
                    UNIT_TEST_NULL:
                      returnType: LIST_OF_TEXT
                  right:
                    LIST:
                      itemType: TEXT
                      items: []
        - status: COMPLIANT
          currentStateMessage: Empty and Empty Item
          check:
            UNIT_TEST:
              id: Empty-And-Empty-Item
              expected:
                text: "unitTest(Empty-And-Empty-Item): listOfText([]) != listOfText([''])"
              arg:
                NOT_EQUAL:
                  left:
                    LIST:
                      itemType: TEXT
                      items: []
                  right:
                    LIST:
                      itemType: TEXT
                      items:
                        - ""
        - status: COMPLIANT
          currentStateMessage: Empty and Empty Items
          check:
            UNIT_TEST:
              id: Empty-And-Empty-Items
              expected:
                text: "unitTest(Empty-And-Empty-Items): listOfText([]) != listOfText(['', '', ''])"
              arg:
                NOT_EQUAL:
                  left:
                    LIST:
                      itemType: TEXT
                      items: []
                  right:
                    LIST:
                      itemType: TEXT
                      items:
                        - ""
                        - ""
                        - ""
        - status: COMPLIANT
          currentStateMessage: One Empty and Many Empty
          check:
            UNIT_TEST:
              id: One-Empty-And-Many-Empty
              expected:
                text: "unitTest(One-Empty-And-Many-Empty): listOfText(['']) != listOfText(['', '', ''])"
              arg:
                NOT_EQUAL:
                  left:
                    LIST:
                      itemType: TEXT
                      items:
                        - ""
                  right:
                    LIST:
                      itemType: TEXT
                      items:
                        - ""
                        - ""
                        - ""
        - status: COMPLIANT
          currentStateMessage: Same Number Of Empty
          check:
            UNIT_TEST:
              id: Same-Number-Of-Empty
              expected:
                text: "unitTest(Same-Number-Of-Empty): listOfText(['', '', '']) == listOfText(['', '', ''])"
              arg:
                IS_EQUAL:
                  left:
                    LIST:
                      itemType: TEXT
                      items:
                        - ""
                        - ""
                        - ""
                  right:
                    LIST:
                      itemType: TEXT
                      items:
                        - ""
                        - ""
                        - ""
        - status: COMPLIANT
          currentStateMessage: Empty with Whitespaces
          check:
            UNIT_TEST:
              id: Empty-With-Whitespaces
              expected:
                text: "unitTest(Empty-With-Whitespaces): listOfText(['']) != listOfText(['', '  ', '\\t', '\\n', '\\r', '  \\n\\r\\t  '])"
              arg:
                NOT_EQUAL:
                  left:
                    LIST:
                      itemType: TEXT
                      items:
                        - ""
                  right:
                    LIST:
                      itemType: TEXT
                      items:
                        - ""
                        - "  "
                        - "\t"
                        - "\n"
                        - "\r"
                        - "  \n\r\t  "
        - status: COMPLIANT
          currentStateMessage: Empty with Whitespaces Size
          check:
            UNIT_TEST:
              id: Empty-With-Whitespaces-Size
              expected:
                text: "unitTest(Empty-With-Whitespaces-Size): listOfText(['', '  ', '\\t', '\\n', '\\r', '  \\n\\r\\t  ']).size() == number(6.0)"
              arg:
                IS_EQUAL:
                  left:
                    SIZE:
                      arg:
                        LIST:
                          itemType: TEXT
                          items:
                            - ""
                            - "  "
                            - "\t"
                            - "\n"
                            - "\r"
                            - "  \n\r\t  "
                  right:
                    NUMBER: 6
        - status: COMPLIANT
          currentStateMessage: Same Number Of Whitespaces
          check:
            UNIT_TEST:
              id: Same-Number-Of-Whitespaces
              expected:
                text: "unitTest(Same-Number-Of-Whitespaces): listOfText(['', ' ', '  ', '   ', '    ', '     ']) == listOfText(['', '  ', '\\t', '\\n', '\\r', '  \\n\\r\\t  '])"
              arg:
                IS_EQUAL:
                  left:
                    LIST:
                      itemType: TEXT
                      items:
                        - ""
                        - " "
                        - "  "
                        - "   "
                        - "    "
                        - "     "
                  right:
                    LIST:
                      itemType: TEXT
                      items:
                        - ""
                        - "  "
                        - "\t"
                        - "\n"
                        - "\r"
                        - "  \n\r\t  "
        - status: COMPLIANT
          currentStateMessage: Empty and Non-empty
          check:
            UNIT_TEST:
              id: Empty-And-Non-Empty
              expected:
                text: "unitTest(Empty-And-Non-Empty): listOfText(['a']) != listOfText([' ', 'a'])"
              arg:
                NOT_EQUAL:
                  left:
                    LIST:
                      itemType: TEXT
                      items:
                        - "a"
                  right:
                    LIST:
                      itemType: TEXT
                      items:
                        - " "
                        - "a"
        - status: COMPLIANT
          currentStateMessage: Empty and Non-empty Size
          check:
            UNIT_TEST:
              id: Empty-And-Non-Empty-Size
              expected:
                text: "unitTest(Empty-And-Non-Empty-Size): listOfText([' ', 'a']).size() == number(2.0)"
              arg:
                IS_EQUAL:
                  left:
                    SIZE:
                      arg:
                        LIST:
                          itemType: TEXT
                          items:
                            - " "
                            - "a"
                  right:
                    NUMBER: 2
        - status: COMPLIANT
          currentStateMessage: Duplicate Values
          check:
            UNIT_TEST:
              id: Duplicate-Values
              expected:
                text: "unitTest(Duplicate-Values): listOfText(['a']) != listOfText(['a', 'a'])"
              arg:
                NOT_EQUAL:
                  left:
                    LIST:
                      itemType: TEXT
                      items:
                        - "a"
                  right:
                    LIST:
                      itemType: TEXT
                      items:
                        - "a"
                        - "a"
        - status: COMPLIANT
          currentStateMessage: Duplicate Values Size
          check:
            UNIT_TEST:
              id: Duplicate-Values-Size
              expected:
                text: "unitTest(Duplicate-Values-Size): listOfText(['a', 'a']).size() == number(2.0)"
              arg:
                IS_EQUAL:
                  left:
                    SIZE:
                      arg:
                        LIST:
                          itemType: TEXT
                          items:
                            - "a"
                            - "a"
                  right:
                    NUMBER: 2
        - status: COMPLIANT
          currentStateMessage: Duplicate Values in Different Case
          check:
            UNIT_TEST:
              id: Duplicate-Values-Different-Case
              expected:
                text: "unitTest(Duplicate-Values-Different-Case): listOfText(['a', 'a']) == listOfText(['A', 'a'])"
              arg:
                IS_EQUAL:
                  left:
                    LIST:
                      itemType: TEXT
                      items:
                        - "a"
                        - "a"
                  right:
                    LIST:
                      itemType: TEXT
                      items:
                        - "A"
                        - "a"
        - status: COMPLIANT
          currentStateMessage: Duplicate Values in Different Case Size
          check:
            UNIT_TEST:
              id: Duplicate-Values-Different-Case-Size
              expected:
                text: "unitTest(Duplicate-Values-Different-Case-Size): listOfText(['A', 'a']).size() == number(2.0)"
              arg:
                IS_EQUAL:
                  left:
                    SIZE:
                      arg:
                        LIST:
                          itemType: TEXT
                          items:
                            - "A"
                            - "a"
                  right:
                    NUMBER: 2
        - status: COMPLIANT
          currentStateMessage: Duplicate Values with Whitespaces
          check:
            UNIT_TEST:
              id: Duplicate-Values-Whitespace
              expected:
                text: "unitTest(Duplicate-Values-Whitespace): listOfText(['a', 'a']) == listOfText([' a ', 'a'])"
              arg:
                IS_EQUAL:
                  left:
                    LIST:
                      itemType: TEXT
                      items:
                        - "a"
                        - "a"
                  right:
                    LIST:
                      itemType: TEXT
                      items:
                        - " a "
                        - "a"
        - status: COMPLIANT
          currentStateMessage: Duplicate Values with Whitespaces Size
          check:
            UNIT_TEST:
              id: Duplicate-Values-Whitespace-Size
              expected:
                text: "unitTest(Duplicate-Values-Whitespace-Size): listOfText([' a ', 'a']).size() == number(2.0)"
              arg:
                IS_EQUAL:
                  left:
                    SIZE:
                      arg:
                        LIST:
                          itemType: TEXT
                          items:
                            - " a "
                            - "a"
                  right:
                    NUMBER: 2
        - status: COMPLIANT
          currentStateMessage: Duplicate Values with Whitespaces Inside
          check:
            UNIT_TEST:
              id: Duplicate-Values-Whitespaces-Inside
              expected:
                text: "unitTest(Duplicate-Values-Whitespaces-Inside): listOfText(['a b', 'a b', 'a b']) == listOfText(['a b', 'a   b', 'a\\nb'])"
              arg:
                IS_EQUAL:
                  left:
                    LIST:
                      itemType: TEXT
                      items:
                        - "a b"
                        - "a b"
                        - "a b"
                  right:
                    LIST:
                      itemType: TEXT
                      items:
                        - "a b"
                        - "a   b"
                        - "a\nb"
        - status: COMPLIANT
          currentStateMessage: Duplicate Values with Whitespaces Inside Size
          check:
            UNIT_TEST:
              id: Duplicate-Values-Whitespaces-Inside-Size
              expected:
                text: "unitTest(Duplicate-Values-Whitespaces-Inside-Size): listOfText(['a b', 'a   b', 'a\\nb']).size() == number(3.0)"
              arg:
                IS_EQUAL:
                  left:
                    SIZE:
                      arg:
                        LIST:
                          itemType: TEXT
                          items:
                            - "a b"
                            - "a   b"
                            - "a\nb"
                  right:
                    NUMBER: 3
        - status: COMPLIANT
          currentStateMessage: Value Order
          check:
            UNIT_TEST:
              id: Value-Order
              expected:
                text: "unitTest(Value-Order): listOfText(['a', 'b']) != listOfText(['b', 'a'])"
              arg:
                NOT_EQUAL:
                  left:
                    LIST:
                      itemType: TEXT
                      items:
                        - "a"
                        - "b"
                  right:
                    LIST:
                      itemType: TEXT
                      items:
                        - "b"
                        - "a"
      otherwise:
        status: INCOMPLIANT
        currentStateMessage: Test Failed
        remediationMessage: Developer Fix Required
script: |-
  CREATE TEMP FUNCTION mock_ExpectedResult()
  RETURNS ARRAY<STRUCT<
          Id STRING,
          expectedResult STRUCT<status STRING, conditionIndex DECIMAL, conditionText STRING, runtimeError STRING>
      >>
  DETERMINISTIC
  LANGUAGE js
  AS r"""
    return [ {
    "Id" : "Null-And-Null",
    "expectedResult" : {
      "status" : "COMPLIANT",
      "conditionIndex" : 199,
      "conditionText" : "unitTest(Null-And-Null): null == null",
      "runtimeError" : null
    }
  }, {
    "Id" : "Null-And-Empty",
    "expectedResult" : {
      "status" : "COMPLIANT",
      "conditionIndex" : 299,
      "conditionText" : "unitTest(Null-And-Empty): null == listOfText([])",
      "runtimeError" : null
    }
  }, {
    "Id" : "Empty-And-Empty-Item",
    "expectedResult" : {
      "status" : "COMPLIANT",
      "conditionIndex" : 399,
      "conditionText" : "unitTest(Empty-And-Empty-Item): listOfText([]) != listOfText([''])",
      "runtimeError" : null
    }
  }, {
    "Id" : "Empty-And-Empty-Items",
    "expectedResult" : {
      "status" : "COMPLIANT",
      "conditionIndex" : 499,
      "conditionText" : "unitTest(Empty-And-Empty-Items): listOfText([]) != listOfText(['', '', ''])",
      "runtimeError" : null
    }
  }, {
    "Id" : "One-Empty-And-Many-Empty",
    "expectedResult" : {
      "status" : "COMPLIANT",
      "conditionIndex" : 599,
      "conditionText" : "unitTest(One-Empty-And-Many-Empty): listOfText(['']) != listOfText(['', '', ''])",
      "runtimeError" : null
    }
  }, {
    "Id" : "Same-Number-Of-Empty",
    "expectedResult" : {
      "status" : "COMPLIANT",
      "conditionIndex" : 699,
      "conditionText" : "unitTest(Same-Number-Of-Empty): listOfText(['', '', '']) == listOfText(['', '', ''])",
      "runtimeError" : null
    }
  }, {
    "Id" : "Empty-With-Whitespaces",
    "expectedResult" : {
      "status" : "COMPLIANT",
      "conditionIndex" : 799,
      "conditionText" : "unitTest(Empty-With-Whitespaces): listOfText(['']) != listOfText(['', '  ', '\\t', '\\n', '\\r', '  \\n\\r\\t  '])",
      "runtimeError" : null
    }
  }, {
    "Id" : "Empty-With-Whitespaces-Size",
    "expectedResult" : {
      "status" : "COMPLIANT",
      "conditionIndex" : 899,
      "conditionText" : "unitTest(Empty-With-Whitespaces-Size): listOfText(['', '  ', '\\t', '\\n', '\\r', '  \\n\\r\\t  ']).size() == number(6.0)",
      "runtimeError" : null
    }
  }, {
    "Id" : "Same-Number-Of-Whitespaces",
    "expectedResult" : {
      "status" : "COMPLIANT",
      "conditionIndex" : 999,
      "conditionText" : "unitTest(Same-Number-Of-Whitespaces): listOfText(['', ' ', '  ', '   ', '    ', '     ']) == listOfText(['', '  ', '\\t', '\\n', '\\r', '  \\n\\r\\t  '])",
      "runtimeError" : null
    }
  }, {
    "Id" : "Empty-And-Non-Empty",
    "expectedResult" : {
      "status" : "COMPLIANT",
      "conditionIndex" : 1099,
      "conditionText" : "unitTest(Empty-And-Non-Empty): listOfText(['a']) != listOfText([' ', 'a'])",
      "runtimeError" : null
    }
  }, {
    "Id" : "Empty-And-Non-Empty-Size",
    "expectedResult" : {
      "status" : "COMPLIANT",
      "conditionIndex" : 1199,
      "conditionText" : "unitTest(Empty-And-Non-Empty-Size): listOfText([' ', 'a']).size() == number(2.0)",
      "runtimeError" : null
    }
  }, {
    "Id" : "Duplicate-Values",
    "expectedResult" : {
      "status" : "COMPLIANT",
      "conditionIndex" : 1299,
      "conditionText" : "unitTest(Duplicate-Values): listOfText(['a']) != listOfText(['a', 'a'])",
      "runtimeError" : null
    }
  }, {
    "Id" : "Duplicate-Values-Size",
    "expectedResult" : {
      "status" : "COMPLIANT",
      "conditionIndex" : 1399,
      "conditionText" : "unitTest(Duplicate-Values-Size): listOfText(['a', 'a']).size() == number(2.0)",
      "runtimeError" : null
    }
  }, {
    "Id" : "Duplicate-Values-Different-Case",
    "expectedResult" : {
      "status" : "COMPLIANT",
      "conditionIndex" : 1499,
      "conditionText" : "unitTest(Duplicate-Values-Different-Case): listOfText(['a', 'a']) == listOfText(['A', 'a'])",
      "runtimeError" : null
    }
  }, {
    "Id" : "Duplicate-Values-Different-Case-Size",
    "expectedResult" : {
      "status" : "COMPLIANT",
      "conditionIndex" : 1599,
      "conditionText" : "unitTest(Duplicate-Values-Different-Case-Size): listOfText(['A', 'a']).size() == number(2.0)",
      "runtimeError" : null
    }
  }, {
    "Id" : "Duplicate-Values-Whitespace",
    "expectedResult" : {
      "status" : "COMPLIANT",
      "conditionIndex" : 1699,
      "conditionText" : "unitTest(Duplicate-Values-Whitespace): listOfText(['a', 'a']) == listOfText([' a ', 'a'])",
      "runtimeError" : null
    }
  }, {
    "Id" : "Duplicate-Values-Whitespace-Size",
    "expectedResult" : {
      "status" : "COMPLIANT",
      "conditionIndex" : 1799,
      "conditionText" : "unitTest(Duplicate-Values-Whitespace-Size): listOfText([' a ', 'a']).size() == number(2.0)",
      "runtimeError" : null
    }
  }, {
    "Id" : "Duplicate-Values-Whitespaces-Inside",
    "expectedResult" : {
      "status" : "COMPLIANT",
      "conditionIndex" : 1899,
      "conditionText" : "unitTest(Duplicate-Values-Whitespaces-Inside): listOfText(['a b', 'a b', 'a b']) == listOfText(['a b', 'a   b', 'a\\nb'])",
      "runtimeError" : null
    }
  }, {
    "Id" : "Duplicate-Values-Whitespaces-Inside-Size",
    "expectedResult" : {
      "status" : "COMPLIANT",
      "conditionIndex" : 1999,
      "conditionText" : "unitTest(Duplicate-Values-Whitespaces-Inside-Size): listOfText(['a b', 'a   b', 'a\\nb']).size() == number(3.0)",
      "runtimeError" : null
    }
  }, {
    "Id" : "Value-Order",
    "expectedResult" : {
      "status" : "COMPLIANT",
      "conditionIndex" : 2099,
      "conditionText" : "unitTest(Value-Order): listOfText(['a', 'b']) != listOfText(['b', 'a'])",
      "runtimeError" : null
    }
  } ];
  """;

  CREATE TEMP FUNCTION mock_CA10__CaAwsInstance__c()
  RETURNS ARRAY<STRUCT<
      Id STRING,
      CA10__disappearanceTime__c TIMESTAMP,
      context STRUCT<
          snapshotTime TIMESTAMP
      >
  >>
  DETERMINISTIC
  LANGUAGE js
  AS r"""
    return [ {
    "context" : {
      "snapshotTime" : new Date("2024-01-01T00:00:00.000Z")
    },
    "Id" : "Null-And-Null"
  }, {
    "context" : {
      "snapshotTime" : new Date("2024-01-01T00:00:00.000Z")
    },
    "Id" : "Null-And-Empty"
  }, {
    "context" : {
      "snapshotTime" : new Date("2024-01-01T00:00:00.000Z")
    },
    "Id" : "Empty-And-Empty-Item"
  }, {
    "context" : {
      "snapshotTime" : new Date("2024-01-01T00:00:00.000Z")
    },
    "Id" : "Empty-And-Empty-Items"
  }, {
    "context" : {
      "snapshotTime" : new Date("2024-01-01T00:00:00.000Z")
    },
    "Id" : "One-Empty-And-Many-Empty"
  }, {
    "context" : {
      "snapshotTime" : new Date("2024-01-01T00:00:00.000Z")
    },
    "Id" : "Same-Number-Of-Empty"
  }, {
    "context" : {
      "snapshotTime" : new Date("2024-01-01T00:00:00.000Z")
    },
    "Id" : "Empty-With-Whitespaces"
  }, {
    "context" : {
      "snapshotTime" : new Date("2024-01-01T00:00:00.000Z")
    },
    "Id" : "Empty-With-Whitespaces-Size"
  }, {
    "context" : {
      "snapshotTime" : new Date("2024-01-01T00:00:00.000Z")
    },
    "Id" : "Same-Number-Of-Whitespaces"
  }, {
    "context" : {
      "snapshotTime" : new Date("2024-01-01T00:00:00.000Z")
    },
    "Id" : "Empty-And-Non-Empty"
  }, {
    "context" : {
      "snapshotTime" : new Date("2024-01-01T00:00:00.000Z")
    },
    "Id" : "Empty-And-Non-Empty-Size"
  }, {
    "context" : {
      "snapshotTime" : new Date("2024-01-01T00:00:00.000Z")
    },
    "Id" : "Duplicate-Values"
  }, {
    "context" : {
      "snapshotTime" : new Date("2024-01-01T00:00:00.000Z")
    },
    "Id" : "Duplicate-Values-Size"
  }, {
    "context" : {
      "snapshotTime" : new Date("2024-01-01T00:00:00.000Z")
    },
    "Id" : "Duplicate-Values-Different-Case"
  }, {
    "context" : {
      "snapshotTime" : new Date("2024-01-01T00:00:00.000Z")
    },
    "Id" : "Duplicate-Values-Different-Case-Size"
  }, {
    "context" : {
      "snapshotTime" : new Date("2024-01-01T00:00:00.000Z")
    },
    "Id" : "Duplicate-Values-Whitespace"
  }, {
    "context" : {
      "snapshotTime" : new Date("2024-01-01T00:00:00.000Z")
    },
    "Id" : "Duplicate-Values-Whitespace-Size"
  }, {
    "context" : {
      "snapshotTime" : new Date("2024-01-01T00:00:00.000Z")
    },
    "Id" : "Duplicate-Values-Whitespaces-Inside"
  }, {
    "context" : {
      "snapshotTime" : new Date("2024-01-01T00:00:00.000Z")
    },
    "Id" : "Duplicate-Values-Whitespaces-Inside-Size"
  }, {
    "context" : {
      "snapshotTime" : new Date("2024-01-01T00:00:00.000Z")
    },
    "Id" : "Value-Order"
  } ];
  """;

  CREATE TEMP FUNCTION process_CA10__CaAwsInstance__c(
      obj STRUCT<
          Id STRING,
          CA10__disappearanceTime__c TIMESTAMP
      >,
      snapshotTime TIMESTAMP
  )
  RETURNS STRUCT<status STRING, conditionIndex DECIMAL, conditionText STRING, currentStateMessage STRING, currentStateReferences STRING, remediation STRING, runtimeError STRING>
  DETERMINISTIC
  LANGUAGE js
  AS r"""
      var CollectionLib = new function () {
          this.parse = function(arg, separator, skipEmpty, skipDuplicates, sort, normalize) {
              if (arg == null) return [];
              let parts = arg.split(separator);
              return this.fromArray(parts, skipEmpty, skipDuplicates, sort, normalize);
          };
          this.fromArray = function(arr, skipEmpty, skipDuplicates, sort, normalize) {
              if (arr == null) return [];
              let result = [];
              let seen = new Set();
              arr.forEach(el => {
                  let normalized = normalize ? TextLib.normalize(el) : BytesLib.normalize(el);
                  if (!skipEmpty || (normalize ? TextLib.isNotEmpty(el) : BytesLib.isNotEmpty(el))) {
                      if (!skipDuplicates || !seen.has(normalized)) {
                          if (skipDuplicates) seen.add(normalized);
                          result.push(normalized);
                      }
                  }
              });
              if (sort) result.sort();
              return result;
          };
          this.equal = function(left, right) {
              left = left == null ? [] : left;
              right = right == null ? [] : right;
              if (left.length !== right.length) return false;
              for (let i = 0; i < left.length; i++) {
                  if (left[i] !== right[i]) return false;
              }
              return true;
          };
          this.notEqual = function(left, right) {
              return !this.equal(left, right);
          };
          this.size = function(collection) {
              return collection == null ? 0 : collection.length;
          };
          this.startsWith = function(collection, search, normalize) {
              if (collection == null || collection.length === 0) return false;
              let normalizedSearch = normalize ? TextLib.normalize(search) : BytesLib.normalize(search);
              return collection[0] === normalizedSearch;
          };
          this.endsWith = function(collection, search, normalize) {
              if (collection == null || collection.length === 0) return false;
              let normalizedSearch = normalize ? TextLib.normalize(search) : BytesLib.normalize(search);
              return collection[collection.length - 1] === normalizedSearch;
          };
          this.contains = function(collection, search, normalize) {
              if (collection == null || collection.length === 0) return false;
              return collection.includes(normalize ? TextLib.normalize(search) : BytesLib.normalize(search));
          };
          this.containsAll = function(collection, searchArray, normalize) {
              if (collection == null || collection.length === 0 || searchArray == null || searchArray.length === 0) return false;
              return searchArray.every(search => collection.includes(normalize ? TextLib.normalize(search) : BytesLib.normalize(search)));
          };
          this.containsAny = function(collection, searchArray, normalize) {
              if (collection == null || collection.length === 0 || searchArray == null || searchArray.length === 0) return false;
              return searchArray.some(search => collection.includes(normalize ? TextLib.normalize(search) : BytesLib.normalize(search)));
          };
      }();
      var TextLib = new function () {
          this.normalize = function(arg) {
              return arg == null ? '' : arg.replace(/\s+/g, ' ').trim().toLowerCase();
          };
          this.isEmpty = function(arg) {
              return this.normalize(arg) == '';
          };
          this.isNotEmpty = function(arg) {
              return this.normalize(arg) != '';
          };
          this.equal = function(left, right) {
              return this.normalize(left) == this.normalize(right);
          };
          this.notEqual = function(left, right) {
              return this.normalize(left) != this.normalize(right);
          };
          this.startsWith = function(arg, substring) {
              return this.normalize(arg).startsWith(this.normalize(substring));
          };
          this.endsWith = function(arg, substring) {
              return this.normalize(arg).endsWith(this.normalize(substring));
          };
          this.contains = function(arg, substring) {
              return this.normalize(arg).includes(this.normalize(substring));
          };
          this.containsAll = function(arg, substrings) {
              if (substrings == null || substrings.length === 0) return false;
              let normalizedArg = this.normalize(arg);
              return substrings.every(sub => normalizedArg.includes(this.normalize(sub)));
          };
          this.containsAny = function(arg, substrings) {
              if (substrings == null || substrings.length === 0) return false;
              let normalizedArg = this.normalize(arg);
              return substrings.some(sub => normalizedArg.includes(this.normalize(sub)));
          };
      }();
      var BytesLib = new function () {
          this.normalize = function(arg) {
              return arg == null ? '' : arg;
          };
          this.isEmpty = function(arg) {
              return this.normalize(arg) == '';
          };
          this.isNotEmpty = function(arg) {
              return this.normalize(arg) != '';
          };
          this.equal = function(left, right) {
              return this.normalize(left) == this.normalize(right);
          };
          this.notEqual = function(left, right) {
              return this.normalize(left) != this.normalize(right);
          };
          this.startsWith = function(arg, substring) {
              return this.normalize(arg).startsWith(this.normalize(substring));
          };
          this.endsWith = function(arg, substring) {
              return this.normalize(arg).endsWith(this.normalize(substring));
          };
          this.contains = function(arg, substring) {
              return this.normalize(arg).includes(this.normalize(substring));
          };
          this.containsAll = function(arg, substrings) {
              if (substrings == null || substrings.length === 0) return false;
              let normalizedArg = this.normalize(arg);
              return substrings.every(sub => normalizedArg.includes(this.normalize(sub)));
          };
          this.containsAny = function(arg, substrings) {
              if (substrings == null || substrings.length === 0) return false;
              let normalizedArg = this.normalize(arg);
              return substrings.some(sub => normalizedArg.includes(this.normalize(sub)));
          };
      }();
      var references1 = [];
      // condition[0], conditionIndex:[0..99]
      references1.push('Deleted From AWS [CA10__disappearanceTime__c]: ' + obj.CA10__disappearanceTime__c);
      if (obj.CA10__disappearanceTime__c != null) {
          return {status: 'DISAPPEARED', conditionIndex: 99, conditionText: "isDisappeared(CA10__disappearanceTime__c)", currentStateMessage: "Object is deleted in the source", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null};
      }
      // condition[1], conditionIndex:[100..199]
      if (obj.Id == 'Null-And-Null' && CollectionLib.equal(null, null)) {
          return {status: 'COMPLIANT', conditionIndex: 199, conditionText: "unitTest(Null-And-Null): null == null", currentStateMessage: "Null and Null", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null};
      }
      // condition[2], conditionIndex:[200..299]
      if (obj.Id == 'Null-And-Empty' && CollectionLib.equal(null, CollectionLib.fromArray([], false, false, false, true))) {
          return {status: 'COMPLIANT', conditionIndex: 299, conditionText: "unitTest(Null-And-Empty): null == listOfText([])", currentStateMessage: "Null and Empty", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null};
      }
      // condition[3], conditionIndex:[300..399]
      if (obj.Id == 'Empty-And-Empty-Item' && CollectionLib.notEqual(CollectionLib.fromArray([], false, false, false, true), CollectionLib.fromArray([''], false, false, false, true))) {
          return {status: 'COMPLIANT', conditionIndex: 399, conditionText: "unitTest(Empty-And-Empty-Item): listOfText([]) != listOfText([''])", currentStateMessage: "Empty and Empty Item", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null};
      }
      // condition[4], conditionIndex:[400..499]
      if (obj.Id == 'Empty-And-Empty-Items' && CollectionLib.notEqual(CollectionLib.fromArray([], false, false, false, true), CollectionLib.fromArray(['', '', ''], false, false, false, true))) {
          return {status: 'COMPLIANT', conditionIndex: 499, conditionText: "unitTest(Empty-And-Empty-Items): listOfText([]) != listOfText(['', '', ''])", currentStateMessage: "Empty and Empty Items", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null};
      }
      // condition[5], conditionIndex:[500..599]
      if (obj.Id == 'One-Empty-And-Many-Empty' && CollectionLib.notEqual(CollectionLib.fromArray([''], false, false, false, true), CollectionLib.fromArray(['', '', ''], false, false, false, true))) {
          return {status: 'COMPLIANT', conditionIndex: 599, conditionText: "unitTest(One-Empty-And-Many-Empty): listOfText(['']) != listOfText(['', '', ''])", currentStateMessage: "One Empty and Many Empty", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null};
      }
      // condition[6], conditionIndex:[600..699]
      if (obj.Id == 'Same-Number-Of-Empty' && CollectionLib.equal(CollectionLib.fromArray(['', '', ''], false, false, false, true), CollectionLib.fromArray(['', '', ''], false, false, false, true))) {
          return {status: 'COMPLIANT', conditionIndex: 699, conditionText: "unitTest(Same-Number-Of-Empty): listOfText(['', '', '']) == listOfText(['', '', ''])", currentStateMessage: "Same Number Of Empty", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null};
      }
      // condition[7], conditionIndex:[700..799]
      if (obj.Id == 'Empty-With-Whitespaces' && CollectionLib.notEqual(CollectionLib.fromArray([''], false, false, false, true), CollectionLib.fromArray(['', '  ', '\t', '\n', '\r', '  \n\r\t  '], false, false, false, true))) {
          return {status: 'COMPLIANT', conditionIndex: 799, conditionText: "unitTest(Empty-With-Whitespaces): listOfText(['']) != listOfText(['', '  ', '\\t', '\\n', '\\r', '  \\n\\r\\t  '])", currentStateMessage: "Empty with Whitespaces", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null};
      }
      // condition[8], conditionIndex:[800..899]
      if (obj.Id == 'Empty-With-Whitespaces-Size' && CollectionLib.size(CollectionLib.fromArray(['', '  ', '\t', '\n', '\r', '  \n\r\t  '], false, false, false, true)) == 6.0) {
          return {status: 'COMPLIANT', conditionIndex: 899, conditionText: "unitTest(Empty-With-Whitespaces-Size): listOfText(['', '  ', '\\t', '\\n', '\\r', '  \\n\\r\\t  ']).size() == number(6.0)", currentStateMessage: "Empty with Whitespaces Size", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null};
      }
      // condition[9], conditionIndex:[900..999]
      if (obj.Id == 'Same-Number-Of-Whitespaces' && CollectionLib.equal(CollectionLib.fromArray(['', ' ', '  ', '   ', '    ', '     '], false, false, false, true), CollectionLib.fromArray(['', '  ', '\t', '\n', '\r', '  \n\r\t  '], false, false, false, true))) {
          return {status: 'COMPLIANT', conditionIndex: 999, conditionText: "unitTest(Same-Number-Of-Whitespaces): listOfText(['', ' ', '  ', '   ', '    ', '     ']) == listOfText(['', '  ', '\\t', '\\n', '\\r', '  \\n\\r\\t  '])", currentStateMessage: "Same Number Of Whitespaces", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null};
      }
      // condition[10], conditionIndex:[1000..1099]
      if (obj.Id == 'Empty-And-Non-Empty' && CollectionLib.notEqual(CollectionLib.fromArray(['a'], false, false, false, true), CollectionLib.fromArray([' ', 'a'], false, false, false, true))) {
          return {status: 'COMPLIANT', conditionIndex: 1099, conditionText: "unitTest(Empty-And-Non-Empty): listOfText(['a']) != listOfText([' ', 'a'])", currentStateMessage: "Empty and Non-empty", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null};
      }
      // condition[11], conditionIndex:[1100..1199]
      if (obj.Id == 'Empty-And-Non-Empty-Size' && CollectionLib.size(CollectionLib.fromArray([' ', 'a'], false, false, false, true)) == 2.0) {
          return {status: 'COMPLIANT', conditionIndex: 1199, conditionText: "unitTest(Empty-And-Non-Empty-Size): listOfText([' ', 'a']).size() == number(2.0)", currentStateMessage: "Empty and Non-empty Size", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null};
      }
      // condition[12], conditionIndex:[1200..1299]
      if (obj.Id == 'Duplicate-Values' && CollectionLib.notEqual(CollectionLib.fromArray(['a'], false, false, false, true), CollectionLib.fromArray(['a', 'a'], false, false, false, true))) {
          return {status: 'COMPLIANT', conditionIndex: 1299, conditionText: "unitTest(Duplicate-Values): listOfText(['a']) != listOfText(['a', 'a'])", currentStateMessage: "Duplicate Values", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null};
      }
      // condition[13], conditionIndex:[1300..1399]
      if (obj.Id == 'Duplicate-Values-Size' && CollectionLib.size(CollectionLib.fromArray(['a', 'a'], false, false, false, true)) == 2.0) {
          return {status: 'COMPLIANT', conditionIndex: 1399, conditionText: "unitTest(Duplicate-Values-Size): listOfText(['a', 'a']).size() == number(2.0)", currentStateMessage: "Duplicate Values Size", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null};
      }
      // condition[14], conditionIndex:[1400..1499]
      if (obj.Id == 'Duplicate-Values-Different-Case' && CollectionLib.equal(CollectionLib.fromArray(['a', 'a'], false, false, false, true), CollectionLib.fromArray(['A', 'a'], false, false, false, true))) {
          return {status: 'COMPLIANT', conditionIndex: 1499, conditionText: "unitTest(Duplicate-Values-Different-Case): listOfText(['a', 'a']) == listOfText(['A', 'a'])", currentStateMessage: "Duplicate Values in Different Case", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null};
      }
      // condition[15], conditionIndex:[1500..1599]
      if (obj.Id == 'Duplicate-Values-Different-Case-Size' && CollectionLib.size(CollectionLib.fromArray(['A', 'a'], false, false, false, true)) == 2.0) {
          return {status: 'COMPLIANT', conditionIndex: 1599, conditionText: "unitTest(Duplicate-Values-Different-Case-Size): listOfText(['A', 'a']).size() == number(2.0)", currentStateMessage: "Duplicate Values in Different Case Size", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null};
      }
      // condition[16], conditionIndex:[1600..1699]
      if (obj.Id == 'Duplicate-Values-Whitespace' && CollectionLib.equal(CollectionLib.fromArray(['a', 'a'], false, false, false, true), CollectionLib.fromArray([' a ', 'a'], false, false, false, true))) {
          return {status: 'COMPLIANT', conditionIndex: 1699, conditionText: "unitTest(Duplicate-Values-Whitespace): listOfText(['a', 'a']) == listOfText([' a ', 'a'])", currentStateMessage: "Duplicate Values with Whitespaces", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null};
      }
      // condition[17], conditionIndex:[1700..1799]
      if (obj.Id == 'Duplicate-Values-Whitespace-Size' && CollectionLib.size(CollectionLib.fromArray([' a ', 'a'], false, false, false, true)) == 2.0) {
          return {status: 'COMPLIANT', conditionIndex: 1799, conditionText: "unitTest(Duplicate-Values-Whitespace-Size): listOfText([' a ', 'a']).size() == number(2.0)", currentStateMessage: "Duplicate Values with Whitespaces Size", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null};
      }
      // condition[18], conditionIndex:[1800..1899]
      if (obj.Id == 'Duplicate-Values-Whitespaces-Inside' && CollectionLib.equal(CollectionLib.fromArray(['a b', 'a b', 'a b'], false, false, false, true), CollectionLib.fromArray(['a b', 'a   b', 'a\nb'], false, false, false, true))) {
          return {status: 'COMPLIANT', conditionIndex: 1899, conditionText: "unitTest(Duplicate-Values-Whitespaces-Inside): listOfText(['a b', 'a b', 'a b']) == listOfText(['a b', 'a   b', 'a\\nb'])", currentStateMessage: "Duplicate Values with Whitespaces Inside", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null};
      }
      // condition[19], conditionIndex:[1900..1999]
      if (obj.Id == 'Duplicate-Values-Whitespaces-Inside-Size' && CollectionLib.size(CollectionLib.fromArray(['a b', 'a   b', 'a\nb'], false, false, false, true)) == 3.0) {
          return {status: 'COMPLIANT', conditionIndex: 1999, conditionText: "unitTest(Duplicate-Values-Whitespaces-Inside-Size): listOfText(['a b', 'a   b', 'a\\nb']).size() == number(3.0)", currentStateMessage: "Duplicate Values with Whitespaces Inside Size", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null};
      }
      // condition[20], conditionIndex:[2000..2099]
      if (obj.Id == 'Value-Order' && CollectionLib.notEqual(CollectionLib.fromArray(['a', 'b'], false, false, false, true), CollectionLib.fromArray(['b', 'a'], false, false, false, true))) {
          return {status: 'COMPLIANT', conditionIndex: 2099, conditionText: "unitTest(Value-Order): listOfText(['a', 'b']) != listOfText(['b', 'a'])", currentStateMessage: "Value Order", currentStateReferences: references1.join('\n'), remediation: null, runtimeError: null};
      }
      return {status: 'INCOMPLIANT', conditionIndex: 2100, conditionText: "otherwise", currentStateMessage: "Test Failed", currentStateReferences: references1.join('\n'), remediation: "Developer Fix Required", runtimeError: null};
  """;


  SELECT
    expectedResult.Id as Id,
    IF (
      IFNULL(expectedResult.expectedResult.status, '') = IFNULL(sObject.result.status, '')
      AND IFNULL(expectedResult.expectedResult.conditionIndex, -1) = IFNULL(sObject.result.conditionIndex, -1)
      AND IFNULL(expectedResult.expectedResult.conditionText, '') = IFNULL(sObject.result.conditionText, '')
      AND IFNULL(expectedResult.expectedResult.runtimeError, '') = IFNULL(sObject.result.runtimeError, ''),
      "MATCH",
      "FAIL"
    ) as match,
    expectedResult.expectedResult.status as expectedStatus, sObject.result.status as actualStatus,
    expectedResult.expectedResult.conditionIndex as expectedConditionIndex, sObject.result.conditionIndex as actualConditionIndex,
    expectedResult.expectedResult.conditionText as expectedConditionText, sObject.result.conditionText as actualConditionText,
    expectedResult.expectedResult.runtimeError as expectedRuntimeError, sObject.result.runtimeError as actualRuntimeError
  FROM UNNEST(mock_ExpectedResult()) expectedResult
  LEFT JOIN (
      SELECT
          sObject.Id AS Id,
          sObject.CA10__disappearanceTime__c AS CA10__disappearanceTime__c,
          process_CA10__CaAwsInstance__c(
              STRUCT(
                  sObject.Id AS Id,
                  sObject.CA10__disappearanceTime__c AS CA10__disappearanceTime__c
              ),
              sObject.context.snapshotTime
          ) as result
      FROM UNNEST(mock_CA10__CaAwsInstance__c()) AS sObject
  ) sObject ON sObject.Id = expectedResult.Id;
