@Test
public void inflate_singleButton_findByIdWorks() {

    Component view = inflater.inflate(getXml("single-button.xml"));
    // check that the id my-button returns a Button
    assertEquals(com.vaadin.ui.Button.class,
            Clara.findComponentById(view, "myButton").getClass());
    // check that non-existing id returns null
    assertEquals(null, Clara.findComponentById(view, "non-existing-id"));
}