@Test
public void inflate_alignmentTest_alignmentAssignedCorrectly() {

    VerticalLayout layout = (VerticalLayout) inflater
            .inflate(getXml("alignment-test.xml"));
    Component child = layout.getComponent(0);
    assertEquals(Alignment.TOP_RIGHT, layout.getComponentAlignment(child));
}