Writing effective JUnit tests for DFC code can be difficult, especially when issues like security, setting up docbase state, and tearing down docbase state are taken into consideration. This presentation discusses the obstacles and provides a basic framework for testing DFC code. This presentation was given at EMC's Software Developer Conference 2006.