@Test
public void shouldIterateReturn() throws Exception {

    X9InputStreamReturnReader reader = buildReaderFromFile();
    for (X937ReturnGraph graph : reader) {
        X937ReturnRecord detailRecord = graph.returnRecord();
        log.info(detailRecord.toString());
    }
    reader.close();
}