// write to file
OutputStream out = new FileOutputStream(sf);
byte[] outWrite = new byte[]{1, 2, 3};
out.write(outWrite);
out.close();
sf.spoolDone();
// File is present on the disk. It will be removed from disk space.
assertTrue("File should be deleted.", sf.delete());
}
}