@Test
public void inflaterListener_componentReuse() {

    VerticalLayout layout = (VerticalLayout) Clara.build().createFrom(
            "/org/vaadin/teemu/clara/component-reuse.xml");
    assertEquals(2, layout.getComponentCount());
    assertCustomComponentInflaterListener("custom1",
            (CustomComponentInflaterListener) layout.getComponent(0));
    assertCustomComponentInflaterListener("custom2",
            (CustomComponentInflaterListener) layout.getComponent(1));
}