// Use the List variant instead, so we get better test coverage.
pico.registerComponentImplementation(Touchable.class, DecoratedTouchable.class, Collections.singletonList(new ComponentParameter("default")));
DefaultPicoContainer grandChild = new DefaultPicoContainer(new DefaultPicoContainer(new DefaultPicoContainer(pico)));
Touchable touchable = (Touchable) grandChild.getComponentInstanceOfType(Touchable.class);
assertEquals(DecoratedTouchable.class, touchable.getClass());
}