Portals provide information from diverse sources in a unified way. When portlets are integrated into a portal, the functions delivered as part of each portlet should be available all of the time. Unit testing can ensure that the features of your portlets will work all the time, and everywhere. It is important to unit test portlets before they are hosted publicly, and testing with frameworks will speed up the testing process. In this article, learn about portletUnit, a JUnit testing framework for testing JSR-168 portlets. portletUnit uses a mock container for testing, thereby reducing the cost of investment in huge portal server environments. With the portletUnit framework you can run unit tests on any machine—without a portal server.