{
// this test shows an unusual behaviour of this method - if the current
// directory is a root directory, changing to the parent directory
// makes the current directory the user's home directory...
JFileChooser fc = new JFileChooser();
FileSystemView fsv = fc.getFileSystemView();
File[] roots = fsv.getRoots();
File root = roots[0];
fc.setCurrentDirectory(root);
fc.addPropertyChangeListener(this);
fc.changeToParentDirectory();
harness.check(fc.getCurrentDirectory(),