*
* See {@link #bind(String, Object)} to resp. register the initial context.
*
- * To bind objects in the JNDI tree simply use the standard JNDI api: <code>
+ * To start mocking the JNDI tree, call {@link #register()}.
+ *
+ * To bind objects in the JNDI tree simply use the standard JNDI api:
+ * <pre>
* InitialContext context = new InitialContext();
* MyClass myObj = ...;
* context.bind("a/b", myObj);
- * </code>
+ * </pre>
+ *
+ * When finished with a test case, call {@link #unregister()} to unregister the
+ * JNDI tree again.
*/
public class StubInitialContextFactory implements InitialContextFactory {