@Rule
public ExpectedException exception = ExpectedException.none();
@Test
public void testBadFilenameConstructorArgument() throws NitfFormatException, URISyntaxException {
assertNotNull("Test file missing", getClass().getResource(testfile));
<BUG>FileReader goodReader = new FileReader(getClass().getResource(testfile).getPath());
</BUG>
assertNotNull(goodReader);
exception.expect(NitfFormatException.class);
exception.expectMessage("no such file not found: no such file");

@Rule
public ExpectedException exception = ExpectedException.none();
@Test
public void testBadFilenameConstructorArgument() throws NitfFormatException, URISyntaxException {
assertNotNull("Test file missing", getClass().getResource(testfile));
FileReader goodReader = new FileReader(getClass().getResource(testfile).toURI().getPath());
assertNotNull(goodReader);
exception.expect(NitfFormatException.class);
exception.expectMessage("no such file not found: no such file");
