@Test
void convertFromPolicyElement() throws IOException {

    String jsStringOriginal = "my-javascript";
    Element policyElement = createPolicy(createJSAssertion("myPolicy", "", false, jsStringOriginal));
    InputStream jsStream = assertionJSPolicyConverter.convertFromPolicyElement(policyElement);
    String jsString = IOUtils.toString(jsStream, StandardCharsets.UTF_8);
    assertEquals(jsStringOriginal, jsString);
}