@Test
public void inflate_layoutAttributes_layoutAttributesApplied() {

    Component layout = inflater.inflate(getXml("layout-attributes.xml"));
    // check that the composition root is actually a VerticalLayout
    assertEquals(com.vaadin.ui.VerticalLayout.class, layout.getClass());
    // check expandRatio
    VerticalLayout verticalLayout = (VerticalLayout) layout;
    Component button = verticalLayout.getComponentIterator().next();
    assertEquals(1.0f, verticalLayout.getExpandRatio(button), 0.0f);
}