@Test
public void inflate_singleLayout_layoutWithMarginsInstantiated() {

    Component layout = inflater.inflate(getXml("single-layout.xml"));
    // check margin="true false false true"
    assertEquals(new MarginInfo(true, false, false, true),
            ((VerticalLayout) layout).getMargin());
}