MockDoclet is a tool for generating mock objects for Java classes and interfaces to aid in unit testing classes that are tightly coupled to other components. It is an active code generation tool that scans interfaces for JavaDoc style @mock tags at build time to generate the appropriate mock objects. It is built on top of XDoclet and the MockObjects framework, and is designed to be used with JUnit and Ant.