@Test(expected = IOException.class)
public void keepOpenExcepionTest() throws IOException {

    SimpleTextWriter sfw = new SimpleTextWriter
            .Builder(tmpFile)
            .build();
    sfw.write("Hello");
    sfw.write("Now it will throw an exception..");
}