@Test
public void testInterceptWritingFiles_inexistingOutputDirectory_withFiles() throws Exception {

	File outputDirectory = this.folder.newFolder();
	Utils.deleteFilesRecursively( outputDirectory );
	Assert.assertFalse( outputDirectory.isDirectory());
	File file = this.folder.newFile();
	Properties props = new Properties();
	props.put( "loc", file.getAbsolutePath());
	props.put( UserDataHelpers.ENCODE_FILE_CONTENT_PREFIX + "loc", "" );
	UserDataHelpers.interceptWritingFiles( props, outputDirectory );
	Assert.assertTrue( outputDirectory.isDirectory());
	Assert.assertTrue( file.isFile());
}