Directory directory = new Directory(clientContainer.getContext(), testDir .toURI().toString()); testDirectory(directory);
testDirectory(application, application.getDirectory(), "index");  testDirectory(application, application.getDirectory(), "");
	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();			clientContainer.getClients().add(Protocol.FILE);			// Now, let's start the container!			clientContainer.start();			// Create a DirectoryHandler that manages a local Directory with no index			Directory directory = new Directory(clientContainer.getContext(), testDir					.toURI().toString());			testDirectory(directory);			// Now, let's stop the container!			clientContainer.stop();			testFile.delete();		}		catch (Exception e)		{			e.printStackTrace();		}	}