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());
}
/**
* Tears down the fixture, for example, close a network connection. This
* method is called after a test is executed.