@Test
public void inflate_absoluteLayout() {

    AbsoluteLayout layout = (AbsoluteLayout) inflater
            .inflate(getXml("absolutelayout.xml"));
    Button button = (Button) layout.getComponentIterator().next();
    // check position attributes
    assertEquals(20, layout.getPosition(button).getTopValue(), 0);
    assertEquals(10, layout.getPosition(button).getLeftValue(), 0);
    assertEquals(Unit.PIXELS, layout.getPosition(button).getTopUnits());
    assertEquals(Unit.PERCENTAGE, layout.getPosition(button).getLeftUnits());
}