clientContainer.getClients().add(Protocol.FILE);
   public void testDirectory() throws IOException   {      try      {         // Create a temporary directory for the tests         File testDir = new File(System.getProperty("java.io.tmpdir"),               "DirectoryTestCase");         testDir.mkdir();         // Create a temporary file for the tests (the tests directory is not empty)         File testFile = File.createTempFile("test", ".txt", testDir);         testFileUrl = webSiteURL.concat(testFile.getName());         // Create a new Restlet container         Container clientContainer = new Container();         // Now, let's start the container!         clientContainer.start();         // Create a DirectoryHandler that manages a local Directory with no index         DirectoryHandler directory = new DirectoryHandler(clientContainer.getContext(),               testDir.toURI().toString(), "");         testDirectory(directory);         // Now, let's stop the container!         clientContainer.stop();         testFile.delete();      }      catch (Exception e)      {         e.printStackTrace();      }   }