@Test
public void testInstantiationFromXMLStreamOfBrokenRecord()
                        throws XMLStreamException, FactoryConfigurationError {

    InputStream is = ISORecordTest.class.getResourceAsStream( "datasetRecord_invalidDate.invalid" );
    XMLStreamReader xmlStream = XMLInputFactory.newInstance().createXMLStreamReader( is );
    ISORecord record = new ISORecord( xmlStream );
    boolean exception = false;
    try {
        record.getIdentifier();
    } catch ( Exception e ) {
        exception = true;
    }
    assertTrue( exception );
}