@Test
public void testFactory() throws Exception {

    X9RecordFactoryStrategy strategy = new DefaultX9RecordFactoryStrategy();
    X9RecordFactory factory = strategy.factory(X9RecordFactoryStrategy.X937_STANDARD_DSTU);
    Record x9Record = factory.newX9Record(X9Record.TYPE_FILE_HEADER);
    X937FileHeaderRecord fileHeaderRecord = (X937FileHeaderRecord) x9Record;
    assertEquals("03", fileHeaderRecord.standardLevel());
    assertEquals(3, fileHeaderRecord.standardLevelAsInt());
}