@Test
public void singleTest()
                        throws XMLStreamException, FactoryConfigurationError, FileNotFoundException,
                        URISyntaxException {

    final XMLInputFactory fac = XMLInputFactory.newInstance();
    final Class<SymbologyParserTest> cls = SymbologyParserTest.class;
    if ( file.endsWith( ".xml" ) ) {
        LOG.debug( "Expecting {} to parse fine.", file );
        XMLStreamReader in = fac.createXMLStreamReader( cls.getResource( file ).toString(),
                                                        cls.getResourceAsStream( file ) );
        in.next();
        assertNotNull( SymbologyParser.INSTANCE.parse( in ) );
    }
    if ( file.endsWith( ".bad" ) ) {
        LOG.debug( "Expecting {} to fail.", file );
        XMLStreamReader in = fac.createXMLStreamReader( cls.getResource( file ).toString(),
                                                        cls.getResourceAsStream( file ) );
        in.next();
        try {
            SymbologyParser.INSTANCE.parse( in );
            assertEquals( true, false );
        } catch ( XMLStreamException e ) {
            assertNotNull( e );
        }
    }
}