@Test
void testPrepareSetVariableAssertionNotENVTextNode() throws DocumentParseException {

    Element setVariableAssertion = document.createElement(SET_VARIABLE);
    document.appendChild(setVariableAssertion);
    Element expression = document.createElement(EXPRESSION);
    expression.setTextContent("my \n Text \r\n Content");
    setVariableAssertion.appendChild(expression);
    Element variableToSet = document.createElement(VARIABLE_TO_SET);
    variableToSet.setAttribute(PolicyEntityBuilder.STRING_VALUE, "my-var");
    setVariableAssertion.appendChild(variableToSet);
    String prefix = "prefix";
    setVariableAssertionBuilder.buildAssertionElement(setVariableAssertion, policyBuilderContext);
    Element nameElement = getSingleElement(setVariableAssertion, VARIABLE_TO_SET);
    assertEquals("my-var", nameElement.getAttribute(PolicyEntityBuilder.STRING_VALUE));
    Element expressionElement = getSingleElement(setVariableAssertion, BASE_64_EXPRESSION);
    String b64 = expressionElement.getAttribute(PolicyEntityBuilder.STRING_VALUE);
    assertEquals(Base64.getEncoder().encodeToString("my \n Text \r\n Content".getBytes(StandardCharsets.UTF_8)), b64);
}