def METHOD_NAME(self):
    # given:
    g = ConjunctiveGraph()
    g.add((BNode(), RDF.value, Literal("""<p """, datatype=RDF.XMLLiteral)))
    # when:
    xmlrepr = g.serialize(format="pretty-xml")
    # then:
    assert (
        """<rdf:value rdf:datatype="http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral">&lt;p """
        in xmlrepr
    )