@Test
    public void testTextWithBothLegalAndIllegalNumericCharacterReferences() throws Exception {
        // setup
        final String text = "The value &#x09; is a legal numeric character reference, but the value &#x01; is not.";
        
        // do magic
        final boolean result = XMLLightweightParser.hasIllegalCharacterReferences(text);
        
        // verify
        assertTrue(result);
    }
Checks if {@link XMLLightweightParser#hasIllegalCharacterReferences(String)} correctly identifies an illegal
numeric reference if it is embedded in a snippet of text that also contains a legal reference.
xmppserver/src/test/java/org/jivesoftware/openfire/nio/XmlNumericCharacterReferenceTest.java