public void testAggregatedVerificationException() {
MutablePicoContainer pico = createPicoContainer(null);
pico.registerComponentImplementation(ComponentA.class);
pico.registerComponentImplementation(ComponentE.class);
try {
new VerifyingVisitor().traverse(pico);
fail("we expect a PicoVerificationException");
} catch (PicoVerificationException e) {
List nested = e.getNestedExceptions();
assertEquals(2, nested.size());
assertTrue(-1 != e.getMessage().indexOf(ComponentA.class.getName()));