/** @throws IOException */ @Test public void testNewlines() throws IOException { final File temp = File.createTempFile("io-helper", ".txt"); try { IOHelper.write(temp, "\n\n"); assertThat(IOHelper.readToString(temp), is("\n\n")); } finally { temp.delete(); } }