It’s not secret that JSF is not the best testable web framework of all. When it comes to Unit Testing JSF backing(managed-bean) logic, the reason for this is quite obvious. At some point when programming the backend logic of your page, you need to use FacesContext to access FacesMessages, session or etc. So how this can be avoided? PrimeFaces Optimus features an IOC container built on top of Googl
![Easy Unit Testing JSF Backing Beans](https://cdn-ak-scissors.b.st-hatena.com/image/square/8d71ff5111e05619a10d29bb40d7aebaa75c8fbc/height=288;version=1;width=512/https%3A%2F%2Fs0.wp.com%2Fi%2Fblank.jpg)