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

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