@Test
public void inflate_singleButton_buttonInstantiated() {

    Button button = (Button) inflater.inflate(getXml("single-button.xml"));
    // check that the composition root is actually a Button
    assertEquals(com.vaadin.ui.Button.class, button.getClass());
    // check attributes
    assertEquals("My Button", button.getCaption());
    assertEquals(1, button.getTabIndex());
}