public void testIOException() {
final ParseResult testResult = new ParseResult(new Doc("some source", EMPTY_PKG, NO_IMPORTS,Collections.<DataType>emptyList()), Util.<SyntaxError>list());
final Parser parser = new DummyParser(testResult, "some source", "some string");
try {
final ParseResult resultDoc = parser.parse(new Source() {
@Override
public BufferedReader createReader() {
return new BufferedReader(new Reader() {