/**
* Class that encapsulates beanmanager lookup in a way so that the lookup can be
- * explicitly overriden (e.g. for unit test).
+ * explicitly overriden (for instance for unit test).
*
* In case no bean manager is found the beanmanager is set to null and the
* problem is logged.
*
+ * This class does caching of the obtained reference to the bean manager.
+ * As a result, it is necessary to call {@link #setBeanManager(BeanManager)}
+ * in the setup phase of unit tests to make sure that the lookup is done again.
+ *
* @author Erik Brakkee
*/
public class BeanManagerLookup {