/**
* Test property accessors and mutators.
*/
public void testProperties() {
Button button = new Button();
button.setText("Alpha");
assertEquals("Alpha", button.getText());
button.setBackgroundImage(TestConstants.BACKGROUND_IMAGE);
assertEquals(TestConstants.BACKGROUND_IMAGE, button.getBackgroundImage());
button.setIcon(TestConstants.ICON);
assertEquals(TestConstants.ICON, button.getIcon());
button.setIconTextMargin(TestConstants.EXTENT_100_PX);
assertEquals(TestConstants.EXTENT_100_PX, button.getIconTextMargin());
button.setBorder(TestConstants.BORDER_THIN_YELLOW);
assertEquals(TestConstants.BORDER_THIN_YELLOW, button.getBorder());
button.setHeight(TestConstants.EXTENT_500_PX);
assertEquals(TestConstants.EXTENT_500_PX, button.getHeight());
button.setWidth(TestConstants.EXTENT_200_PX);
assertEquals(TestConstants.EXTENT_200_PX, button.getWidth());
button.setTextAlignment(new Alignment(Alignment.LEADING, Alignment.BOTTOM));
assertEquals(new Alignment(Alignment.LEADING, Alignment.BOTTOM), button.getTextAlignment());
button.setTextPosition(new Alignment(Alignment.DEFAULT, Alignment.TOP));
assertEquals(new Alignment(Alignment.DEFAULT, Alignment.TOP), button.getTextPosition());
}