@Test
public void shouldIterateCheckDetail() throws Exception {

    X9InputStreamCheckDetailReader reader = buildReaderFromFile();
    for (X937CheckDetailGraph graph : reader) {
        X937CheckDetailRecord detailRecord = graph.checkDetailRecord();
        log.info(detailRecord.toString());
    }
    reader.close();
}