in.close();
}
public void testBasic() {
Style alphaStyle = styleSheet.getStyle(Column.class, "alpha");
GridLayoutData layoutData = (GridLayoutData) alphaStyle.getProperty(Component.PROPERTY_LAYOUT_DATA);
assertEquals(2, layoutData.getColumnSpan());
assertEquals(1, layoutData.getRowSpan());
assertEquals(new Color(0xabcdef), layoutData.getBackground());
assertEquals(new Insets(20, 30), layoutData.getInsets());
assertNotNull(layoutData.getBackgroundImage());
ImageReference imageReference = layoutData.getBackgroundImage().getImage();
assertNotNull(imageReference);
assertTrue(imageReference instanceof ResourceImageReference);
assertEquals("nextapp/echo2/test/componentxml/BackgroundImage.png",
((ResourceImageReference) imageReference).getResource());
}