public void testExceptionThrowingFromHiddenComponent() {
MutablePicoContainer pc = createImplementationHidingPicoContainer();
pc.registerComponentImplementation(ActionListener.class, Burp.class);
try {
ActionListener ac = (ActionListener) pc.getComponentInstance(ActionListener.class);
ac.actionPerformed(null);
fail("Oh no.");
} catch (RuntimeException e) {
assertEquals("woohoo", e.getMessage());
}
}