	@Test
	public void testCopyDirectory2() throws IOException {


		final File srcDir = buildOrnidroidHomeTest(TEST_DIRECTORY + "/srcDir");
		final File destDir = new File(TEST_DIRECTORY + "/destDir");

		// copy in an other directory
		try {
			FileHelper.copyDirectory(srcDir, destDir);
			final File[] srcDirContent = srcDir.listFiles();
			final File[] destDirContent = destDir.listFiles();
			List<String> srcDirContentPaths = new ArrayList<String>();

			List<String> destDirContentPaths = new ArrayList<String>();
			Assert.assertTrue(srcDirContent.length == destDirContent.length);
			for (int i = 0; i < srcDirContent.length; i++) {
				srcDirContentPaths.add(srcDirContent[i].getName());
				destDirContentPaths.add(destDirContent[i].getName());
			}
			for (String path : srcDirContentPaths) {
				Assert.assertTrue(destDirContentPaths.contains(path));
			}

		} catch (final IOException e) {
			Assert.fail("no exception should occur");
			e.printStackTrace();
		}

	}