This document discusses how to make testing Java applications with CDI more effective using mock objects and the Arquillian testing framework. It recommends using CDI alternatives to inject mock implementations instead of real dependencies during tests. It also describes how to write portable extensions that allow mocking injection points and defining mocks at runtime to leverage mock frameworks' capabilities within integration tests.