@Test
    public void testLegalNumericCharacterReferences() throws Exception {
        for(final String reference : legalNumericCharacterReferences) {
            // do magic
            final boolean result =  XMLLightweightParser.hasIllegalCharacterReferences(reference);
            
            // verify
            assertFalse(result, "Value \""+reference+"\" is reported to contain an illegal numeric character reference, even though this hard-coded test value should not contain one.");
        }
    }
Iterates of the collection of legal numeric character references and asserts that
{@link XMLLightweightParser#hasIllegalCharacterReferences(String)} does not find an illegal reference when each
of these values are passed as an argument to this method.
xmppserver/src/test/java/org/jivesoftware/openfire/nio/XmlNumericCharacterReferenceTest.java