	@Test
	public void deletDir() throws IOException {

		Path parentdir = Files.createTempDirectory("DIR");	
		Path parentdirfile1 = createTempFile(parentdir, "FILE_1", ".tmp");
		Path parentdirfile2 = createTempFile(parentdir, "FILE_2", ".tmp");
		
		FileUtils.deleteDir(parentdir, new DeleteVisitor("*.tmp"));
		
		assertThat(exists(parentdir), is(true));
		assertThat(exists(parentdirfile1), is(false));
		assertThat(exists(parentdirfile2), is(false));	
	}