Especially if the component has been set up for easy testing: Mock objects available for dependencies.I found it helpful to have a separate package (suite) of tests for each component that could be considered black-box component tests.As long as you do not need to go through too many hoops, JUnit will also work well for other kinds of tests.