/**
  * Sets the current directory of this fixture's <code>{@link VFSJFileChooser}</code> to the given
  * one.
  *
  * @param dir the directory to set as current.
  * @throws IllegalStateException if this fixture's <code>VFSJFileChooser</code> is disabled.
  * @throws IllegalStateException if this fixture's <code>VFSJFileChooser</code> is not showing on
  *     the screen.
  * @return this fixture.
  */
 public VFSJFileChooserFixture<FileObject> setCurrentDirectory(final FileObject dir) {
   driver.setCurrentDirectory(target, dir);
   return this;
 }