@Test
public void testExampleIn() throws IOException
{

    System.setIn(new FileInputStream("example.in"));
    ByteArrayOutputStream output = new ByteArrayOutputStream();
    System.setOut(new PrintStream(output));
    Whoops.main();
    System.setOut(STANDARD_OUT);
    Scanner scanner = new Scanner(new File("example.out"));
    String expected = scanner.useDelimiter("\\A").next();
    String actual = output.toString();
    Assert.assertEquals(expected, actual);
    scanner.close();
}