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

    File dir = folder.newFolder();
    FileOrDirectoryTaskOutput out = new FileOrDirectoryTaskOutput(dir);
    File tmp = IOUtils.createTemporaryBuffer(out);
    assertTrue(tmp.exists());
    assertTrue(tmp.isFile());
    assertEquals(dir.getAbsolutePath(), tmp.getParent());
}