@Test
public void inflate_tabSheet_captionsAssigned() {

    TabSheet layout = (TabSheet) inflater.inflate(getXml("tabsheet.xml"));
    // check tab captions
    assertEquals("caption-tab1", layout.getTab(0).getCaption());
    assertEquals("caption-tab2", layout.getTab(1).getCaption());
}