@Test
public void testCreateBufferFileOutNonExistingParentExists() throws TaskIOException, IOException {

    File dir = folder.newFolder("chuck.norris");
    FileTaskOutput out = new FileTaskOutput(new File(dir.getAbsolutePath(), "I dont exist"));
    File tmp = IOUtils.createTemporaryBuffer(out);
    assertTrue(tmp.exists());
    assertTrue(tmp.isFile());
    assertEquals(dir.getAbsolutePath(), tmp.getParent());
}