@Test
public void checkStreamingModeSourceRewrite() throws NitfFormatException, URISyntaxException, IOException {
final String testfile = "/JitcNitf21Samples/ns3321a.nsf";
String outputFile = FilenameUtils.getName(testfile);
assertNotNull("Test file missing", getClass().getResource(testfile));
<BUG>File resourceFile = new File(getClass().getResource(testfile).getFile());
</BUG>
SlottedParseStrategy parseStrategy = new SlottedParseStrategy(SlottedParseStrategy.ALL_SEGMENT_DATA);
NitfReader reader = new FileReader(resourceFile);
NitfParser.parse(reader, parseStrategy);

@Test
public void checkStreamingModeSourceRewrite() throws NitfFormatException, URISyntaxException, IOException {
final String testfile = "/JitcNitf21Samples/ns3321a.nsf";
String outputFile = FilenameUtils.getName(testfile);
assertNotNull("Test file missing", getClass().getResource(testfile));
File resourceFile = new File(getClass().getResource(testfile).toURI().getPath());
SlottedParseStrategy parseStrategy = new SlottedParseStrategy(SlottedParseStrategy.ALL_SEGMENT_DATA);
NitfReader reader = new FileReader(resourceFile);
NitfParser.parse(reader, parseStrategy);
