This chapter examines one approach to unit testing components in an application container: in-container unit testing, or integration testing. These components are modules that may be developed by different programmers or teams and that need to be tested together or integrated. We will analyze in-container testing pros and cons and show what you can achieve by using the mock-objects approach introduced in chapter 8, where mock objects fall short, and how in-container testing enables you to write integration unit tests. We will also work with Arquillian, a Java EE container-agnostic framework for integration testing, and show you how to use it to conduct integration testing. Finally, we will compare the stub, mock-object, and in-container approaches covered in this part of this book.