os = new BufferedOutputStream(fos = new FileOutputStream(f
.getPath()), 4096);
FileDescriptor fd = fos.getFD();
assertTrue("Valid fd returned false", fd.valid());
os.close();
assertTrue("Invalid fd returned true", !fd.valid());
}
/**
* Sets up the fixture, for example, open a network connection. This method
* is called before a test is executed.