@Test
public void testSampleIn() throws IOException
{

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