	@Test
	public void testPrepareDirectory() throws Exception {

		File[] dirs = new File[3];
		for (int i = 0; i < dirs.length; i++) {
			dirs[i] = tempFolder.newFolder();
		}

		MmapChunkAllocator allocator =
			new MmapChunkAllocator(10240, dirs, new Configuration());
		for (File dir : dirs) {
			Assert.assertTrue(new File(dir, MmapChunkAllocator.MMAP_DIR).exists());
		}

		allocator.close();
	}