Here is procedure which I used to test the Exchange Recipient Policy Filter manually. I have used the Ldifde.exe tool to perform this task.
Here is the syntax I used:
Ldifde -s <DC Name> -r "<Paste your Filter here>" -f <Output File Name> -l samaccountname
Also, you can see the ldifde syntax and details in the following KB article: