final String testfile = "/JitcNitf21Samples/ns3228d.nsf";
List<Tre> tres = new ArrayList<>();
new NitfParserInputFlow()
.inputStream(getClass().getResourceAsStream(testfile))
.allData()
<BUG>.fileHeader(header -> tres.addAll(header.getTREsRawStructure().getTREs()));
assertThat(tres.size(), is(1));</BUG>
Tre jitcid = tres.get(0);
assertThat(jitcid, not(nullValue()));
assertThat(jitcid.getRawData().length, not(0L));

final String testfile = "/JitcNitf21Samples/ns3228d.nsf";
List<Tre> tres = new ArrayList<>();
new NitfParserInputFlow()
.inputStream(getClass().getResourceAsStream(testfile))
.allData()
.fileHeader(header -> tres.addAll(header.getTREsRawStructure().getTREs()))
.end();
assertThat(tres.size(), is(1));
Tre jitcid = tres.get(0);
assertThat(jitcid, not(nullValue()));
assertThat(jitcid.getRawData().length, not(0L));
