extends MockObjectTestCase {
public void testVisitorThatMustBeInvokedUsingTraverse() {
MutablePicoContainer pico = new DefaultPicoContainer();
try {
pico.accept(new VerifyingVisitor());
fail("PicoVisitorTraversalException expected");
} catch (PicoVisitorTraversalException e) {
assertTrue(e.getMessage().indexOf(VerifyingVisitor.class.getName()) >= 0);
}
}